Chromium Code Reviews| Index: build/standalone.gypi |
| diff --git a/build/standalone.gypi b/build/standalone.gypi |
| index 6c88409dbee892ed9dcc6332f08104d1da5d1756..100e9bbf1490298f6d2b58e3087e9408c0291bc5 100644 |
| --- a/build/standalone.gypi |
| +++ b/build/standalone.gypi |
| @@ -262,44 +262,50 @@ |
| 'android_ndk_root%': '<(base_dir)/third_party/android_tools/ndk/', |
| 'android_host_arch%': "<!(uname -m | sed -e 's/i[3456]86/x86/')", |
| 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
| + 'os_folder_name%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/darwin/')", |
| }, |
| # Copy conditionally-set variables out one scope. |
| 'android_ndk_root%': '<(android_ndk_root)', |
| 'host_os%': '<(host_os)', |
| + 'os_folder_name%': '<(os_folder_name)', |
| 'conditions': [ |
| ['target_arch == "ia32"', { |
| - 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| + 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 'android_target_arch%': 'x86', |
| 'android_target_platform%': '16', |
| + 'arm_version%': 'default', |
| }], |
| ['target_arch == "x64"', { |
| - 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| + 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 'android_target_arch%': 'x86_64', |
| 'android_target_platform%': '21', |
| + 'arm_version%': 'default', |
| }], |
| ['target_arch=="arm"', { |
| - 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-androideabi-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| + 'android_toolchain%': '<(android_ndk_root)/toolchains/arm-linux-androideabi-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 'android_target_arch%': 'arm', |
| 'android_target_platform%': '16', |
| 'arm_version%': 7, |
| }], |
| ['target_arch == "arm64"', { |
| - 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| + 'android_toolchain%': '<(android_ndk_root)/toolchains/aarch64-linux-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 'android_target_arch%': 'arm64', |
| 'android_target_platform%': '21', |
| 'arm_version%': 'default', |
| }], |
| ['target_arch == "mipsel"', { |
| - 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| + 'android_toolchain%': '<(android_ndk_root)/toolchains/mipsel-linux-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 'android_target_arch%': 'mips', |
| 'android_target_platform%': '16', |
| + 'arm_version%': 'default', |
| }], |
| ['target_arch == "mips64el"', { |
| - 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-linux-android-4.9/prebuilt/<(host_os)-<(android_host_arch)/bin', |
| + 'android_toolchain%': '<(android_ndk_root)/toolchains/mips64el-linux-android-4.9/prebuilt/<(os_folder_name)-<(android_host_arch)/bin', |
| 'android_target_arch%': 'mips64', |
| 'android_target_platform%': '21', |
| + 'arm_version%': 'default', |
| }], |
| ], |
| }, |
| @@ -351,9 +357,13 @@ |
| 'android_libcpp_library': 'c++_static', |
| }], # OS=="android" |
| ['host_clang==1', { |
| + 'host_ld': '<!(which ld)', |
|
Jakob Kummerow
2016/04/13 19:50:34
This "which ld" (along with "which ranlib" right b
|
| + 'host_ranlib': '<!(which ranlib)', |
| 'host_cc': '<(clang_dir)/bin/clang', |
| 'host_cxx': '<(clang_dir)/bin/clang++', |
| }, { |
| + 'host_ld': '<!(which ld)', |
| + 'host_ranlib': '<!(which ranlib)', |
| 'host_cc': '<!(which gcc)', |
| 'host_cxx': '<!(which g++)', |
| }], |
| @@ -1188,8 +1198,12 @@ |
| # Hardcode the compiler names in the Makefile so that |
| # it won't depend on the environment at make time. |
| 'make_global_settings': [ |
| + ['LD', '<!(/bin/echo -n <(android_toolchain)/../*/bin/ld)'], |
| + ['RANLIB', '<!(/bin/echo -n <(android_toolchain)/../*/bin/ranlib)'], |
| ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'], |
| ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'], |
| + ['LD.host', '<(host_ld)'], |
| + ['RANLIB.host', '<(host_ranlib)'], |
| ['CC.host', '<(host_cc)'], |
| ['CXX.host', '<(host_cxx)'], |
| ], |