| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 ] | 85 ] |
| 86 } | 86 } |
| 87 | 87 |
| 88 if (is_clang) { | 88 if (is_clang) { |
| 89 if (current_cpu == "arm") { | 89 if (current_cpu == "arm") { |
| 90 abi_target = "arm-linux-androideabi" | 90 abi_target = "arm-linux-androideabi" |
| 91 } else if (current_cpu == "x86") { | 91 } else if (current_cpu == "x86") { |
| 92 abi_target = "i686-linux-androideabi" | 92 abi_target = "i686-linux-androideabi" |
| 93 } else if (current_cpu == "arm64") { | 93 } else if (current_cpu == "arm64") { |
| 94 # Place holder for arm64 support, not tested. | 94 # Place holder for arm64 support, not tested. |
| 95 # TODO: Enable clang support for Android Arm64. http://crbug.com/539781 |
| 95 abi_target = "aarch64-linux-androideabi" | 96 abi_target = "aarch64-linux-androideabi" |
| 96 } else if (current_cpu == "x64") { | 97 } else if (current_cpu == "x64") { |
| 97 # Place holder for x64 support, not tested. | 98 # Place holder for x64 support, not tested. |
| 98 # TODO: Enable clang support for Android x64. http://crbug.com/346626 | 99 # TODO: Enable clang support for Android x64. http://crbug.com/539781 |
| 99 abi_target = "x86_64-linux-androideabi" | 100 abi_target = "x86_64-linux-androideabi" |
| 100 } else if (current_cpu == "mipsel") { | 101 } else if (current_cpu == "mipsel") { |
| 101 # Place holder for mips support, not tested. | 102 # Place holder for mips support, not tested. |
| 102 abi_target = "mipsel-linux-androideabi" | 103 abi_target = "mipsel-linux-androideabi" |
| 103 } else if (current_cpu == "mips64el") { | 104 } else if (current_cpu == "mips64el") { |
| 104 # Place holder for mips64 support, not tested. | 105 # Place holder for mips64 support, not tested. |
| 105 abi_target = "mips64el-linux-androideabi" | 106 abi_target = "mips64el-linux-androideabi" |
| 106 } else { | 107 } else { |
| 107 assert(false, "Architecture not supported") | 108 assert(false, "Architecture not supported") |
| 108 } | 109 } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 233 |
| 233 # Avoid errors with current NDK: | 234 # Avoid errors with current NDK: |
| 234 # "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" |
| 235 "-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM.
h", | 236 "-finstrument-functions-exclude-file-list=arm_neon.h,SaturatedArithmeticARM.
h", |
| 236 ] | 237 ] |
| 237 defines = [ "CYGPROFILE_INSTRUMENTATION=1" ] | 238 defines = [ "CYGPROFILE_INSTRUMENTATION=1" ] |
| 238 } | 239 } |
| 239 | 240 |
| 240 config("no_cygprofile_instrumentation") { | 241 config("no_cygprofile_instrumentation") { |
| 241 } | 242 } |
| OLD | NEW |