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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//build/json_schema_api.gni") | 8 import("//build/json_schema_api.gni") |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
10 if (is_android) { | 10 if (is_android) { |
11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
12 } | 12 } |
13 | 13 |
14 if (use_x11) { | |
15 pkg_config("atk") { | |
16 packages = [ "atk" ] | |
17 atk_lib_dir = exec_script(pkg_config_script, | |
18 pkg_config_args + [ | |
19 "--libdir", | |
20 "atk", | |
21 ], | |
22 "string") | |
23 defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ] | |
24 } | |
25 | |
26 # gn orders flags on a target before flags from configs. The default config | |
27 # adds -Wall, and these flags have to be after -Wall -- so they need to come | |
28 # from a config and can't be on the target directly. | |
29 config("atk_warnings") { | |
30 cflags = [ | |
31 # glib uses the pre-c++11 typedef-as-static_assert hack. | |
32 "-Wno-unused-local-typedef", | |
33 | |
34 # G_DEFINE_TYPE automatically generates a *get_instance_private | |
35 # inline function after glib 2.37. That's unused. Prevent to | |
36 # complain about it. | |
37 "-Wno-unused-function", | |
38 ] | |
39 } | |
40 } | |
41 | |
42 component("accessibility") { | 14 component("accessibility") { |
43 sources = [ | 15 sources = [ |
44 "ax_node.cc", | 16 "ax_node.cc", |
45 "ax_node.h", | 17 "ax_node.h", |
46 "ax_node_data.cc", | 18 "ax_node_data.cc", |
47 "ax_node_data.h", | 19 "ax_node_data.h", |
48 "ax_relative_bounds.cc", | 20 "ax_relative_bounds.cc", |
49 "ax_relative_bounds.h", | 21 "ax_relative_bounds.h", |
50 "ax_serializable_tree.cc", | 22 "ax_serializable_tree.cc", |
51 "ax_serializable_tree.h", | 23 "ax_serializable_tree.h", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 69 } |
98 | 70 |
99 if (use_atk) { | 71 if (use_atk) { |
100 sources += [ | 72 sources += [ |
101 "platform/atk_util_auralinux.cc", | 73 "platform/atk_util_auralinux.cc", |
102 "platform/atk_util_auralinux.h", | 74 "platform/atk_util_auralinux.h", |
103 "platform/ax_platform_node_auralinux.cc", | 75 "platform/ax_platform_node_auralinux.cc", |
104 "platform/ax_platform_node_auralinux.h", | 76 "platform/ax_platform_node_auralinux.h", |
105 ] | 77 ] |
106 | 78 |
107 configs += [ | 79 configs += [ "//build/config/linux/atk" ] |
108 ":atk", | |
109 ":atk_warnings", | |
110 ] | |
111 | 80 |
112 if (use_gconf) { | 81 if (use_gconf) { |
113 configs += [ "//build/config/linux/gconf" ] | 82 configs += [ "//build/config/linux/gconf" ] |
114 } | 83 } |
115 | 84 |
116 if (use_glib) { | 85 if (use_glib) { |
117 configs += [ "//build/config/linux:glib" ] | 86 configs += [ "//build/config/linux:glib" ] |
118 } | 87 } |
119 } | 88 } |
120 } | 89 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 json_schema_api("ax_gen") { | 146 json_schema_api("ax_gen") { |
178 sources = [ | 147 sources = [ |
179 "ax_enums.idl", | 148 "ax_enums.idl", |
180 ] | 149 ] |
181 deps = [ | 150 deps = [ |
182 "//base/third_party/dynamic_annotations", | 151 "//base/third_party/dynamic_annotations", |
183 ] | 152 ] |
184 root_namespace = "ui" | 153 root_namespace = "ui" |
185 schemas = true | 154 schemas = true |
186 } | 155 } |
OLD | NEW |