| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/config/sysroot.gni") | 7 import("//build/config/sysroot.gni") |
| 8 | 8 |
| 9 assert(is_android) | 9 assert(is_android) |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 "-isystem" + | 138 "-isystem" + |
| 139 rebase_path("$android_ndk_root/sources/android/support/include", | 139 rebase_path("$android_ndk_root/sources/android/support/include", |
| 140 root_build_dir), | 140 root_build_dir), |
| 141 ] | 141 ] |
| 142 | 142 |
| 143 defines = [ "__GNU_SOURCE=1" ] # Necessary for clone(). | 143 defines = [ "__GNU_SOURCE=1" ] # Necessary for clone(). |
| 144 ldflags = [ "-nostdlib" ] | 144 ldflags = [ "-nostdlib" ] |
| 145 lib_dirs = [ "$android_libcpp_root/libs/$android_app_abi" ] | 145 lib_dirs = [ "$android_libcpp_root/libs/$android_app_abi" ] |
| 146 | 146 |
| 147 # The libc++ runtime library (must come first). | 147 # The libc++ runtime library (must come first). |
| 148 if (is_component_build) { | 148 # ASan needs to dynamically link to libc++ even in static builds so |
| 149 # that it can interpose operator new. |
| 150 if (is_component_build || is_asan) { |
| 149 libs = [ "c++_shared" ] | 151 libs = [ "c++_shared" ] |
| 150 } else { | 152 } else { |
| 151 libs = [ "c++_static" ] | 153 libs = [ "c++_static" ] |
| 152 } | 154 } |
| 153 | 155 |
| 154 # libgcc must come before libdl for ld.bfd (MIPS) | 156 # libgcc must come before libdl for ld.bfd (MIPS) |
| 155 if (current_cpu == "mipsel") { | 157 if (current_cpu == "mipsel") { |
| 156 libs += [ | 158 libs += [ |
| 157 # ld linker is used for mips Android, and ld does not accept library | 159 # ld linker is used for mips Android, and ld does not accept library |
| 158 # absolute path prefixed by "-l"; Since libgcc does not exist in mips | 160 # absolute path prefixed by "-l"; Since libgcc does not exist in mips |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 233 |
| 232 # Avoid errors with current NDK: | 234 # Avoid errors with current NDK: |
| 233 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/prebui
lt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:3426
:3: error: argument must be a constant" | 235 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/prebui
lt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:3426
:3: error: argument must be a constant" |
| 234 "-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM.
h", | 236 "-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM.
h", |
| 235 ] | 237 ] |
| 236 defines = [ "CYGPROFILE_INSTRUMENTATION=1" ] | 238 defines = [ "CYGPROFILE_INSTRUMENTATION=1" ] |
| 237 } | 239 } |
| 238 | 240 |
| 239 config("no_cygprofile_instrumentation") { | 241 config("no_cygprofile_instrumentation") { |
| 240 } | 242 } |
| OLD | NEW |