| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 rebase_path(android_libgcc_file), | 184 rebase_path(android_libgcc_file), |
| 185 ] | 185 ] |
| 186 } | 186 } |
| 187 | 187 |
| 188 # Clang with libc++ does not require an explicit atomic library reference. | 188 # Clang with libc++ does not require an explicit atomic library reference. |
| 189 if (!is_clang) { | 189 if (!is_clang) { |
| 190 libs += [ "atomic" ] | 190 libs += [ "atomic" ] |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 | 193 |
| 194 config("sdk") { | |
| 195 if (sysroot != "") { | |
| 196 cflags = [ "--sysroot=" + sysroot ] | |
| 197 ldflags = [ "--sysroot=" + sysroot ] | |
| 198 | |
| 199 # Need to get some linker flags out of the sysroot. | |
| 200 sysroot_ld_path = rebase_path("//build/config/linux/sysroot_ld_path.py") | |
| 201 ldflags += [ exec_script(sysroot_ld_path, | |
| 202 [ | |
| 203 rebase_path("//build/linux/sysroot_ld_path.sh"), | |
| 204 sysroot, | |
| 205 ], | |
| 206 "value") ] | |
| 207 } | |
| 208 } | |
| 209 | |
| 210 config("executable_config") { | 194 config("executable_config") { |
| 211 cflags = [ "-fPIE" ] | 195 cflags = [ "-fPIE" ] |
| 212 ldflags = [ "-pie" ] | 196 ldflags = [ "-pie" ] |
| 213 } | 197 } |
| 214 | 198 |
| 215 config("hide_native_jni_exports") { | 199 config("hide_native_jni_exports") { |
| 216 ldflags = [ "-Wl,--version-script=" + | 200 ldflags = [ "-Wl,--version-script=" + |
| 217 rebase_path("//build/android/android_no_jni_exports.lst") ] | 201 rebase_path("//build/android/android_no_jni_exports.lst") ] |
| 218 } | 202 } |
| OLD | NEW |