DescriptionHandles unknown TARGET_PRODUCT in envsetup.sh
Android comes with a set of build target products (such as soju, trygon)
to build and run Chrome for Android on. When it gets ported to other devices,
however, the build env will likely have its own build targets for them, unknown
to pre-defined build environment.
This CL tries to let Chrome for Android build env support those unknown target
products. Rather than bloating the env setup script with those new target names,
it tries getting TARGET_ARCH_VARIANT by calling the function get_build_var()
(if available) defined in ${ANDROID_ROOT}/build/envsetup.sh to see if the
variable was set up by lunch command. This will help Chrome for Android build
for new, upcoming devices.
TEST=Built successfully with following targets:
- soju(armv7-a-neon)
- trygon(arm7-a)
- full(armv5te)
- full_x86(x86)
- a custom target whose TARGET_ARCH_VARIANT is armv7-a
BUG=
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|