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

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

Issue 1909273002: 🐳 Move linux pkg_config() calls into separate BUILD.gn files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments & visibility Created 4 years, 8 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
« no previous file with comments | « build/config/linux/pangocairo/BUILD.gn ('k') | build/linux/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/sysroot.gni") 5 import("//build/config/sysroot.gni")
6 6
7 assert(is_posix) 7 assert(is_posix)
8 8
9 group("posix") {
10 visibility = [ "//:optimize_gn_gen" ]
11 }
12
9 # This is included by reference in the //build/config/compiler:runtime_library 13 # This is included by reference in the //build/config/compiler:runtime_library
10 # config that is applied to all targets. It is here to separate out the logic 14 # config that is applied to all targets. It is here to separate out the logic
11 # that is Posix-only. Please see that target for advice on what should go in 15 # that is Posix-only. Please see that target for advice on what should go in
12 # :runtime_library vs. :compiler. 16 # :runtime_library vs. :compiler.
13 config("runtime_library") { 17 config("runtime_library") {
14 if (!is_mac && !is_ios && sysroot != "") { 18 if (!is_mac && !is_ios && sysroot != "") {
15 # Pass the sysroot to all C compiler variants, the assembler, and linker. 19 # Pass the sysroot to all C compiler variants, the assembler, and linker.
16 cflags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ] 20 cflags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
17 asmflags = cflags 21 asmflags = cflags
18 ldflags = cflags 22 ldflags = cflags
19 23
20 # Need to get some linker flags out of the sysroot. 24 # Need to get some linker flags out of the sysroot.
21 ldflags += [ exec_script("sysroot_ld_path.py", 25 ldflags += [ exec_script("sysroot_ld_path.py",
22 [ 26 [
23 rebase_path("//build/linux/sysroot_ld_path.sh", 27 rebase_path("//build/linux/sysroot_ld_path.sh",
24 root_build_dir), 28 root_build_dir),
25 sysroot, 29 sysroot,
26 ], 30 ],
27 "value") ] 31 "value") ]
28 } 32 }
29 } 33 }
OLDNEW
« no previous file with comments | « build/config/linux/pangocairo/BUILD.gn ('k') | build/linux/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698