Roboto has shipped to stable channel for a while and it works fine. This CL cleans...
[chromium-blink-merge.git] / ui / accessibility / BUILD.gn
bloba5c67baba95d4b1c4bf0b40423709d75d371e74e
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
3 # found in the LICENSE file.
5 import("//build/config/ui.gni")
6 import("//build/json_schema_api.gni")
7 import("//testing/test.gni")
9 component("accessibility") {
10   sources = [
11     "ax_node.cc",
12     "ax_node.h",
13     "ax_node_data.cc",
14     "ax_node_data.h",
15     "ax_serializable_tree.cc",
16     "ax_serializable_tree.h",
17     "ax_text_utils.cc",
18     "ax_text_utils.h",
19     "ax_tree.cc",
20     "ax_tree.h",
21     "ax_tree_serializer.cc",
22     "ax_tree_serializer.h",
23     "ax_tree_source.h",
24     "ax_tree_update.cc",
25     "ax_tree_update.h",
26     "ax_view_state.cc",
27     "ax_view_state.h",
28     "platform/ax_platform_node.cc",
29     "platform/ax_platform_node.h",
30     "platform/ax_platform_node_base.cc",
31     "platform/ax_platform_node_base.h",
32     "platform/ax_platform_node_delegate.h",
33     "platform/ax_platform_node_mac.h",
34     "platform/ax_platform_node_mac.mm",
35     "platform/ax_platform_node_win.cc",
36     "platform/ax_platform_node_win.h",
37   ]
39   defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
41   public_deps = [
42     ":ax_gen",
43     "//base",
44     "//ui/gfx",
45     "//ui/gfx/geometry",
46   ]
48   if (is_win) {
49     public_deps += [ "//third_party/iaccessible2" ]
50   }
52   if (use_aura && !is_chromeos && is_linux && use_x11) {
53     sources += [
54       "platform/atk_util_auralinux.cc",
55       "platform/atk_util_auralinux.h",
56       "platform/ax_platform_node_auralinux.cc",
57       "platform/ax_platform_node_auralinux.h",
58     ]
60     configs += [
61       "//build/config/linux:atk",
62       "//build/config/linux:atk_warnings",
63       "//build/config/linux:gconf",
64       "//build/config/linux:glib",
65     ]
66   }
69 source_set("test_support") {
70   sources = [
71     "platform/test_ax_node_wrapper.cc",
72     "platform/test_ax_node_wrapper.h",
73     "tree_generator.cc",
74     "tree_generator.h",
75   ]
77   deps = [
78     ":accessibility",
79   ]
82 test("accessibility_unittests") {
83   sources = [
84     "ax_generated_tree_unittest.cc",
85     "ax_text_utils_unittest.cc",
86     "ax_tree_serializer_unittest.cc",
87     "ax_tree_unittest.cc",
88     "platform/ax_platform_node_win_unittest.cc",
89   ]
91   deps = [
92     ":accessibility",
93     ":test_support",
94     "//base",
95     "//base/test:run_all_unittests",
96     "//testing/gtest",
97     "//ui/gfx",
98     "//ui/gfx/geometry",
99   ]
101   if (is_win) {
102     deps += [ "//third_party/iaccessible2" ]
103   }
106 json_schema_api("ax_gen") {
107   sources = [
108     "ax_enums.idl",
109   ]
110   deps = [
111     "//base/third_party/dynamic_annotations",
112   ]
113   root_namespace = "ui"
114   schemas = true