Chromium Code Reviews| Index: build/standalone.gypi |
| diff --git a/build/standalone.gypi b/build/standalone.gypi |
| index 400694486c5c42af314f2f350abc28bc6e1ffcef..55a7f0c066bfc833fa4ff4141cc2adfbdabfc5cf 100644 |
| --- a/build/standalone.gypi |
| +++ b/build/standalone.gypi |
| @@ -253,44 +253,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', |
| }], |
| ], |
| }, |
| @@ -338,9 +344,13 @@ |
| 'android_stlport_library': 'stlport_static', |
| }], # OS=="android" |
| ['host_clang==1', { |
| + 'host_ld': '<!(which ld)', |
|
Jakob Kummerow
2015/10/30 11:57:25
Yeah, this can't be in an OS-independent section.
|
| + 'host_ranlib': '<!(which ranlib)', |
| 'host_cc': '<(clang_dir)/bin/clang', |
| 'host_cxx': '<(clang_dir)/bin/clang++', |
| }, { |
| + 'host_ld': '<!(which ld)', |
|
Jakob Kummerow
2015/10/30 11:57:25
Also, having the same stuff in both branches of a
|
| + 'host_ranlib': '<!(which ranlib)', |
| 'host_cc': '<!(which gcc)', |
| 'host_cxx': '<!(which g++)', |
| }], |
| @@ -1142,8 +1152,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)'], |
|
Michael Achenbach
2015/10/27 14:47:54
Not sure if I understand the test in https://chrom
|
| ['CXX.host', '<(host_cxx)'], |
| ], |