ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / ui / accessibility / accessibility.gyp
blob88613e68505f8abaa77bcb7c0df1e4cc63e7af7a
1 # Copyright 2013 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.
6   'variables': {
7     'chromium_code': 1,
8   },
10   'targets': [
11     {
12       'target_name': 'accessibility',
13       'type': '<(component)',
14       'export_dependent_settings': [
15         'ax_gen',
16       ],
17       'hard_dependency': 1,
18       'dependencies': [
19         '../../base/base.gyp:base',
20         '../gfx/gfx.gyp:gfx',
21         '../gfx/gfx.gyp:gfx_geometry',
22         'ax_gen',
23       ],
24       'defines': [
25         'ACCESSIBILITY_IMPLEMENTATION',
26       ],
27       'sources': [
28         # All .cc, .h under accessibility, except unittests
29         'ax_node.cc',
30         'ax_node.h',
31         'ax_node_data.cc',
32         'ax_node_data.h',
33         'ax_serializable_tree.cc',
34         'ax_serializable_tree.h',
35         'ax_text_utils.cc',
36         'ax_text_utils.h',
37         'ax_tree.cc',
38         'ax_tree.h',
39         'ax_tree_serializer.cc',
40         'ax_tree_serializer.h',
41         'ax_tree_source.h',
42         'ax_tree_update.cc',
43         'ax_tree_update.h',
44         'ax_view_state.cc',
45         'ax_view_state.h',
46         'platform/ax_platform_node.cc',
47         'platform/ax_platform_node.h',
48         'platform/ax_platform_node_base.cc',
49         'platform/ax_platform_node_base.h',
50         'platform/ax_platform_node_delegate.h',
51         'platform/ax_platform_node_mac.h',
52         'platform/ax_platform_node_mac.mm',
53         'platform/ax_platform_node_win.h',
54         'platform/ax_platform_node_win.cc',
55       ],
56       'conditions': [
57         ['OS=="win"', {
58           'dependencies': [
59             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2'
60           ],
61         }],
62       ],
63     },
64     {
65       'target_name': 'accessibility_test_support',
66       'type': 'static_library',
67       'dependencies': [
68         '../../base/base.gyp:base',
69         'accessibility'
70       ],
71       'sources': [
72         'platform/test_ax_node_wrapper.cc',
73         'platform/test_ax_node_wrapper.h',
74         'tree_generator.cc',
75         'tree_generator.h',
76       ]
77     },
78     {
79       'target_name': 'accessibility_unittests',
80       'type': 'executable',
81       'dependencies': [
82         '../../base/base.gyp:base',
83         '../../base/base.gyp:run_all_unittests',
84         '../../testing/gtest.gyp:gtest',
85         '../gfx/gfx.gyp:gfx',
86         '../gfx/gfx.gyp:gfx_geometry',
87         'accessibility',
88         'accessibility_test_support',
89         'ax_gen',
90       ],
91       'sources': [
92         'ax_generated_tree_unittest.cc',
93         'ax_text_utils_unittest.cc',
94         'ax_tree_serializer_unittest.cc',
95         'ax_tree_unittest.cc',
96         'platform/ax_platform_node_win_unittest.cc'
97       ],
98       'conditions': [
99         ['OS=="win"', {
100           'dependencies': [
101             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2'
102           ],
103         }],
104       ],
105     },
106     {
107       'target_name': 'ax_gen',
108       'type': 'static_library',
109       # This target exports a hard dependency because dependent targets may
110       # include ax_enums.h, a generated header.
111       'hard_dependency': 1,
112       'dependencies': [
113         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations'
114         ],
115       'sources': [
116         '<@(schema_files)',
117       ],
118       'msvs_disabled_warnings': [ 4267 ],
119       'includes': [
120         '../../build/json_schema_compile.gypi',
121       ],
122       'variables': {
123         'chromium_code': 1,
124         'schema_files': [
125           'ax_enums.idl',
126         ],
127         'non_compiled_schema_files': [],
128         'cc_dir': 'ui/accessibility',
129         # TODO(dtseng): Change this once all files under ui/accessibility
130         # namespaced under ui::ax.
131         'root_namespace': 'ui',
132       },
133     },
134   ],
135   'conditions': [
136     ['test_isolation_mode != "noop"', {
137       'targets': [
138         {
139           'target_name': 'accessibility_unittests_run',
140           'type': 'none',
141           'dependencies': [
142             'accessibility_unittests',
143           ],
144           'includes': [
145             '../../build/isolate.gypi',
146           ],
147           'sources': [
148             'accessibility_unittests.isolate',
149           ],
150           'conditions': [
151             ['use_x11 == 1', {
152               'dependencies': [
153                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
154               ],
155             }],
156           ],
157         },
158       ],
159     }],
160   ],