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

Side by Side Diff: ui/accessibility/BUILD.gn

Issue 1536423003: gn: Pass pkg_config_args when invoking pkg_config_script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/linux/pkg_config.gni") 5 import("//build/config/linux/pkg_config.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//build/json_schema_api.gni") 7 import("//build/json_schema_api.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 } 11 }
12 12
13 if (use_x11) { 13 if (use_x11) {
14 pkg_config("atk") { 14 pkg_config("atk") {
15 packages = [ "atk" ] 15 packages = [ "atk" ]
16 atk_lib_dir = exec_script(pkg_config_script, 16 atk_lib_dir = exec_script(pkg_config_script,
17 [ 17 pkg_config_args + [
18 "--libdir", 18 "--libdir",
19 "atk", 19 "atk",
20 ], 20 ],
21 "string") 21 "string")
22 defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ] 22 defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ]
23 } 23 }
24 24
25 # gn orders flags on a target before flags from configs. The default config 25 # gn orders flags on a target before flags from configs. The default config
26 # adds -Wall, and these flags have to be after -Wall -- so they need to come 26 # adds -Wall, and these flags have to be after -Wall -- so they need to come
27 # from a config and can't be on the target directly. 27 # from a config and can't be on the target directly.
28 config("atk_warnings") { 28 config("atk_warnings") {
29 cflags = [ 29 cflags = [
30 # glib uses the pre-c++11 typedef-as-static_assert hack. 30 # glib uses the pre-c++11 typedef-as-static_assert hack.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 json_schema_api("ax_gen") { 163 json_schema_api("ax_gen") {
164 sources = [ 164 sources = [
165 "ax_enums.idl", 165 "ax_enums.idl",
166 ] 166 ]
167 deps = [ 167 deps = [
168 "//base/third_party/dynamic_annotations", 168 "//base/third_party/dynamic_annotations",
169 ] 169 ]
170 root_namespace = "ui" 170 root_namespace = "ui"
171 schemas = true 171 schemas = true
172 } 172 }
OLDNEW
« no previous file with comments | « build/config/linux/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698