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

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

Issue 1226153004: ATK accessibility support for web content on Aura Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromecast build by changing the ifdefs back to what they were and then adding another exclusio… Created 5 years, 5 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 | « content/content_browser.gypi ('k') | ui/views/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 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) {
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
41 component("accessibility") { 13 component("accessibility") {
42 sources = [ 14 sources = [
43 "ax_node.cc", 15 "ax_node.cc",
44 "ax_node.h", 16 "ax_node.h",
45 "ax_node_data.cc", 17 "ax_node_data.cc",
46 "ax_node_data.h", 18 "ax_node_data.h",
47 "ax_serializable_tree.cc", 19 "ax_serializable_tree.cc",
48 "ax_serializable_tree.h", 20 "ax_serializable_tree.h",
49 "ax_text_utils.cc", 21 "ax_text_utils.cc",
50 "ax_text_utils.h", 22 "ax_text_utils.h",
(...skipping 23 matching lines...) Expand all
74 ":ax_gen", 46 ":ax_gen",
75 "//base", 47 "//base",
76 "//ui/gfx", 48 "//ui/gfx",
77 "//ui/gfx/geometry", 49 "//ui/gfx/geometry",
78 ] 50 ]
79 51
80 if (is_win) { 52 if (is_win) {
81 public_deps += [ "//third_party/iaccessible2" ] 53 public_deps += [ "//third_party/iaccessible2" ]
82 } 54 }
83 55
84 if (use_aura && !is_chromeos && is_linux && use_x11) { 56 if (use_atk) {
85 sources += [ 57 sources += [
86 "platform/atk_util_auralinux.cc", 58 "platform/atk_util_auralinux.cc",
87 "platform/atk_util_auralinux.h", 59 "platform/atk_util_auralinux.h",
88 "platform/ax_platform_node_auralinux.cc", 60 "platform/ax_platform_node_auralinux.cc",
89 "platform/ax_platform_node_auralinux.h", 61 "platform/ax_platform_node_auralinux.h",
90 ] 62 ]
91 63
92 configs += [ 64 configs += [
93 ":atk", 65 "//build/config/linux:atk",
94 ":atk_warnings", 66 "//build/config/linux:atk_warnings",
95 "//build/config/linux:gconf", 67 "//build/config/linux:gconf",
96 "//build/config/linux:glib", 68 "//build/config/linux:glib",
97 ] 69 ]
98 } 70 }
99 } 71 }
100 72
101 if (is_android) { 73 if (is_android) {
102 android_library("ui_accessibility_java") { 74 android_library("ui_accessibility_java") {
103 deps = [] 75 deps = []
104 srcjar_deps = [ ":ax_enumerations_srcjar" ] 76 srcjar_deps = [ ":ax_enumerations_srcjar" ]
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 json_schema_api("ax_gen") { 126 json_schema_api("ax_gen") {
155 sources = [ 127 sources = [
156 "ax_enums.idl", 128 "ax_enums.idl",
157 ] 129 ]
158 deps = [ 130 deps = [
159 "//base/third_party/dynamic_annotations", 131 "//base/third_party/dynamic_annotations",
160 ] 132 ]
161 root_namespace = "ui" 133 root_namespace = "ui"
162 schemas = true 134 schemas = true
163 } 135 }
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698