Chromium Code Reviews| Index: build/common.gypi |
| diff --git a/build/common.gypi b/build/common.gypi |
| index b8decd5d86bbdd30add612e2b307ecf789ea16af..9cf69560e2c85e4231d48857a270a3b9d41391eb 100644 |
| --- a/build/common.gypi |
| +++ b/build/common.gypi |
| @@ -1712,6 +1712,19 @@ |
| 'android_sdk_version%': '22', |
| 'android_sdk_build_tools_version%': '22.0.0', |
| 'host_os%': "<!(uname -s | sed -e 's/Linux/linux/;s/Darwin/mac/')", |
| + |
| + 'conditions': [ |
| + # Figure this out early since it needs symbols from libgcc.a, so it |
| + # has to be before that in the set of libraries. |
| + ['component=="shared_library" or asan==1', { |
|
Nico
2015/08/03 23:02:25
Add some kind of
# ASan needs to dynamically li
eugenis
2015/08/03 23:21:24
Done.
|
| + 'android_libcpp_library': 'c++_shared', |
| + 'android_must_copy_system_libraries': 1, |
| + }, { |
| + 'android_libcpp_library': 'c++_static', |
| + 'android_must_copy_system_libraries': 0, |
| + }], |
| + ], |
| + |
| }, |
| # Copy conditionally-set variables out one scope. |
| 'android_ndk_root%': '<(android_ndk_root)', |
| @@ -1719,6 +1732,8 @@ |
| 'android_sdk_root%': '<(android_sdk_root)', |
| 'android_sdk_version%': '<(android_sdk_version)', |
| 'android_libcpp_root': '<(android_ndk_root)/sources/cxx-stl/llvm-libc++', |
| + 'android_libcpp_library': '<(android_libcpp_library)', |
| + 'android_must_copy_system_libraries': '<(android_must_copy_system_libraries)', |
| 'host_os%': '<(host_os)', |
| 'android_sdk%': '<(android_sdk_root)/platforms/android-<(android_sdk_version)', |
| @@ -1796,8 +1811,10 @@ |
| 'android_sdk_jar%': '<(android_sdk)/android.jar', |
| 'android_libcpp_root': '<(android_libcpp_root)', |
| + 'android_libcpp_library': '<(android_libcpp_library)', |
| 'android_libcpp_include': '<(android_libcpp_root)/libcxx/include', |
| 'android_libcpp_libs_dir%': '<(android_libcpp_root)/libs/<(android_app_abi)', |
| + 'android_must_copy_system_libraries': '<(android_must_copy_system_libraries)', |
| 'host_os%': '<(host_os)', |
| # Location of the "objcopy" binary, used by both gyp and scripts. |
| @@ -4744,15 +4761,6 @@ |
| # identifying various build artifacts corresponding to a particular |
| # build of chrome (e.g. where to find archived symbols). |
| 'chrome_build_id%': '', |
| - 'conditions': [ |
| - # Figure this out early since it needs symbols from libgcc.a, so it |
| - # has to be before that in the set of libraries. |
| - ['component=="shared_library"', { |
| - 'android_libcpp_library': 'c++_shared', |
| - }, { |
| - 'android_libcpp_library': 'c++_static', |
| - }], |
| - ], |
| # Placing this variable here prevents from forking libvpx, used |
| # by remoting. Remoting is off, so it needn't built, |