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/ui.gni") | 6 import("//build/config/ui.gni") |
6 import("//build/json_schema_api.gni") | 7 import("//build/json_schema_api.gni") |
7 import("//testing/test.gni") | 8 import("//testing/test.gni") |
8 if (is_android) { | 9 if (is_android) { |
9 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
10 } | 11 } |
11 | 12 |
| 13 if (use_x11) { |
| 14 pkg_config("atk") { |
| 15 packages = [ "atk" ] |
| 16 atk_lib_dir = exec_script(pkg_config_script, |
| 17 [ |
| 18 "--libdir", |
| 19 "atk", |
| 20 ], |
| 21 "string") |
| 22 defines = [ "ATK_LIB_DIR=\"$atk_lib_dir\"" ] |
| 23 } |
| 24 |
| 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 |
| 27 # from a config and can't be on the target directly. |
| 28 config("atk_warnings") { |
| 29 cflags = [ |
| 30 # glib uses the pre-c++11 typedef-as-static_assert hack. |
| 31 "-Wno-unused-local-typedef", |
| 32 |
| 33 # G_DEFINE_TYPE automatically generates a *get_instance_private |
| 34 # inline function after glib 2.37. That's unused. Prevent to |
| 35 # complain about it. |
| 36 "-Wno-unused-function", |
| 37 ] |
| 38 } |
| 39 } |
| 40 |
12 component("accessibility") { | 41 component("accessibility") { |
13 sources = [ | 42 sources = [ |
14 "ax_node.cc", | 43 "ax_node.cc", |
15 "ax_node.h", | 44 "ax_node.h", |
16 "ax_node_data.cc", | 45 "ax_node_data.cc", |
17 "ax_node_data.h", | 46 "ax_node_data.h", |
18 "ax_serializable_tree.cc", | 47 "ax_serializable_tree.cc", |
19 "ax_serializable_tree.h", | 48 "ax_serializable_tree.h", |
20 "ax_text_utils.cc", | 49 "ax_text_utils.cc", |
21 "ax_text_utils.h", | 50 "ax_text_utils.h", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 83 |
55 if (use_aura && !is_chromeos && is_linux && use_x11) { | 84 if (use_aura && !is_chromeos && is_linux && use_x11) { |
56 sources += [ | 85 sources += [ |
57 "platform/atk_util_auralinux.cc", | 86 "platform/atk_util_auralinux.cc", |
58 "platform/atk_util_auralinux.h", | 87 "platform/atk_util_auralinux.h", |
59 "platform/ax_platform_node_auralinux.cc", | 88 "platform/ax_platform_node_auralinux.cc", |
60 "platform/ax_platform_node_auralinux.h", | 89 "platform/ax_platform_node_auralinux.h", |
61 ] | 90 ] |
62 | 91 |
63 configs += [ | 92 configs += [ |
64 "//build/config/linux:atk", | 93 ":atk", |
65 "//build/config/linux:atk_warnings", | 94 ":atk_warnings", |
66 "//build/config/linux:gconf", | 95 "//build/config/linux:gconf", |
67 "//build/config/linux:glib", | 96 "//build/config/linux:glib", |
68 ] | 97 ] |
69 } | 98 } |
70 } | 99 } |
71 | 100 |
72 if (is_android) { | 101 if (is_android) { |
73 android_library("ui_accessibility_java") { | 102 android_library("ui_accessibility_java") { |
74 deps = [] | 103 deps = [] |
75 srcjar_deps = [ ":ax_enumerations_srcjar" ] | 104 srcjar_deps = [ ":ax_enumerations_srcjar" ] |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 json_schema_api("ax_gen") { | 154 json_schema_api("ax_gen") { |
126 sources = [ | 155 sources = [ |
127 "ax_enums.idl", | 156 "ax_enums.idl", |
128 ] | 157 ] |
129 deps = [ | 158 deps = [ |
130 "//base/third_party/dynamic_annotations", | 159 "//base/third_party/dynamic_annotations", |
131 ] | 160 ] |
132 root_namespace = "ui" | 161 root_namespace = "ui" |
133 schemas = true | 162 schemas = true |
134 } | 163 } |
OLD | NEW |