Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: build/config/android/BUILD.gn

Issue 1496283003: Port android_must_copy_system_libraries logic GYP->GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/android/linker/config.gni ('k') | build/config/android/rules.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « base/android/linker/config.gni ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698