Remove the dependency on the STRIP env variable for Android
Android builds currently rely on the STRIP environment variable to be available during build time, rather than just at project generation time. It shouldn't. BUG=142642 Review URL: https://chromiumcodereview.appspot.com/10832295 git-svn-id: http://src.chromium.org/svn/trunk/src/build@151886 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
c0ebc46369
Коммит
b60c707932
|
@ -54,6 +54,7 @@ common_vars_defines() {
|
|||
# Must be after CHROME_SRC is set.
|
||||
export PATH=$PATH:${CHROME_SRC}/build/android
|
||||
|
||||
# TODO(beverloo): Remove these once all consumers updated to --strip-binary.
|
||||
export OBJCOPY=$(echo ${ANDROID_TOOLCHAIN}/*-objcopy)
|
||||
export STRIP=$(echo ${ANDROID_TOOLCHAIN}/*-strip)
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
'">@(input_jars_paths)"',
|
||||
'--output',
|
||||
'<(PRODUCT_DIR)/<(test_suite_name)_apk',
|
||||
'--strip-binary=<(android_strip)',
|
||||
'--app_abi',
|
||||
'<(android_app_abi)',
|
||||
'--sdk-build=<(sdk_build)',
|
||||
|
|
11
common.gypi
11
common.gypi
|
@ -927,6 +927,9 @@
|
|||
'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib',
|
||||
'android_app_abi%': '<(android_app_abi)',
|
||||
|
||||
# Location of the "strip" binary, used by both gyp and scripts.
|
||||
'android_strip%' : '<!(/bin/echo -n <(android_toolchain)/*-strip)',
|
||||
|
||||
# Provides an absolute path to PRODUCT_DIR (e.g. out/Release). Used
|
||||
# to specify the output directory for Ant in the Android build.
|
||||
'ant_build_out': '`cd <(PRODUCT_DIR) && pwd -P`',
|
||||
|
@ -2575,7 +2578,7 @@
|
|||
'libraries': [
|
||||
'-l<(android_stlport_library)',
|
||||
# Manually link the libgcc.a that the cross compiler uses.
|
||||
'<!(${ANDROID_TOOLCHAIN}/*-gcc -print-libgcc-file-name)',
|
||||
'<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
|
||||
'-lc',
|
||||
'-ldl',
|
||||
'-lstdc++',
|
||||
|
@ -3327,9 +3330,9 @@
|
|||
# Hardcode the compiler names in the Makefile so that
|
||||
# it won't depend on the environment at make time.
|
||||
'make_global_settings': [
|
||||
['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-gcc)'],
|
||||
['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-g++)'],
|
||||
['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-gcc)'],
|
||||
['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-gcc)'],
|
||||
['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g++)'],
|
||||
['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-gcc)'],
|
||||
['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'],
|
||||
['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'],
|
||||
['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'],
|
||||
|
|
Загрузка…
Ссылка в новой задаче