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

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

Issue 1367403002: Remove the GN *sdk targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698