| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 # TODO: Enable clang support for Android x64. http://crbug.com/539781 | 97 # TODO: Enable clang support for Android x64. http://crbug.com/539781 |
| 98 abi_target = "x86_64-linux-androideabi" | 98 abi_target = "x86_64-linux-androideabi" |
| 99 } else if (current_cpu == "mipsel") { | 99 } else if (current_cpu == "mipsel") { |
| 100 abi_target = "mipsel-linux-android" | 100 abi_target = "mipsel-linux-android" |
| 101 } else if (current_cpu == "mips64el") { | 101 } else if (current_cpu == "mips64el") { |
| 102 # Place holder for mips64 support, not tested. | 102 # Place holder for mips64 support, not tested. |
| 103 abi_target = "mips64el-linux-androideabi" | 103 abi_target = "mips64el-linux-androideabi" |
| 104 } else { | 104 } else { |
| 105 assert(false, "Architecture not supported") | 105 assert(false, "Architecture not supported") |
| 106 } | 106 } |
| 107 cflags += [ | 107 cflags += [ "--target=$abi_target" ] |
| 108 "-target", | 108 ldflags += [ "--target=$abi_target" ] |
| 109 abi_target, | |
| 110 ] | |
| 111 ldflags += [ | |
| 112 "-target", | |
| 113 abi_target, | |
| 114 ] | |
| 115 } | 109 } |
| 116 | 110 |
| 117 # Assign any flags set for the C compiler to asmflags so that they are sent | 111 # Assign any flags set for the C compiler to asmflags so that they are sent |
| 118 # to the assembler. | 112 # to the assembler. |
| 119 asmflags = cflags | 113 asmflags = cflags |
| 120 } | 114 } |
| 121 | 115 |
| 122 # This is included by reference in the //build/config/compiler:runtime_library | 116 # This is included by reference in the //build/config/compiler:runtime_library |
| 123 # config that is applied to all targets. It is here to separate out the logic | 117 # config that is applied to all targets. It is here to separate out the logic |
| 124 # that is Android-only. Please see that target for advice on what should go in | 118 # that is Android-only. Please see that target for advice on what should go in |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 214 |
| 221 # Avoid errors with current NDK: | 215 # 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" | 216 # "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", | 217 "-finstrument-functions-exclude-file-list=arm_neon.h", |
| 224 ] | 218 ] |
| 225 } | 219 } |
| 226 } | 220 } |
| 227 | 221 |
| 228 config("no_cygprofile_instrumentation") { | 222 config("no_cygprofile_instrumentation") { |
| 229 } | 223 } |
| OLD | NEW |