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 |
11 # This is included by reference in the //build/config/compiler config that | 11 # This is included by reference in the //build/config/compiler config that |
12 # is applied to all targets. It is here to separate out the logic that is | 12 # is applied to all targets. It is here to separate out the logic that is |
13 # Android-only. | 13 # Android-only. |
14 config("compiler") { | 14 config("compiler") { |
15 cflags = [ | 15 cflags = [ |
16 "-ffunction-sections", | 16 "-ffunction-sections", |
17 "-funwind-tables", | |
18 "-fno-short-enums", | 17 "-fno-short-enums", |
19 ] | 18 ] |
20 defines = [ | 19 defines = [ |
21 "ANDROID", | 20 "ANDROID", |
22 | 21 |
23 # The NDK has these things, but doesn't define the constants to say that it | 22 # The NDK has these things, but doesn't define the constants to say that it |
24 # does. Define them here instead. | 23 # does. Define them here instead. |
25 "HAVE_SYS_UIO_H", | 24 "HAVE_SYS_UIO_H", |
26 ] | 25 ] |
27 ldflags = [] | 26 ldflags = [] |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 219 |
221 # Avoid errors with current NDK: | 220 # Avoid errors with current NDK: |
222 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/preb
uilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:34
26:3: error: argument must be a constant" | 221 # "third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.6/preb
uilt/linux-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.6/include/arm_neon.h:34
26:3: error: argument must be a constant" |
223 "-finstrument-functions-exclude-file-list=arm_neon.h", | 222 "-finstrument-functions-exclude-file-list=arm_neon.h", |
224 ] | 223 ] |
225 } | 224 } |
226 } | 225 } |
227 | 226 |
228 config("no_cygprofile_instrumentation") { | 227 config("no_cygprofile_instrumentation") { |
229 } | 228 } |
OLD | NEW |