7This script can be run with no arguments, in which case it will produce an
8APK with native libraries for all four architectures: arm, arm64, x86, and
9x64. You can instead list the architectures you want as arguments to this
12 python make_universal_apk.py arm x86
14The environment variables ANDROID_NDK_HOME
and ANDROID_HOME must be set to the
15locations of the Android NDK
and SDK.
17Additionally, `ninja` should be
in your path.
19It assumes that the source tree
is in the desired state, e.g. by having
20run
'python tools/git-sync-deps' in the root of the skia checkout.
23 * If the environment variable SKQP_BUILD_DIR
is set, many of the
24 intermediate build objects will be placed here.
25 * If the environment variable SKQP_OUTPUT_DIR
is set, the final APK
26 will be placed
in this directory.
27 * If the environment variable SKQP_DEBUG
is set, Skia will be compiled
37 assert '/' in [os.sep, os.altsep]
39 skia_dir = os.path.dirname(__file__) +
'/../..'
41 assets_dir = skia_dir +
'/platform_tools/android/apps/skqp/src/main/assets'
42 resources_path = assets_dir +
'/resources'
46 os.symlink(
'../../../../../../../resources', resources_path)
53 sys.stderr.write(options.error + __doc__)
55 options.write(sys.stdout)
58if __name__ ==
'__main__':