Skip direct map from apk check for Samsung Mega.
[chromium-blink-merge.git] / ui / accessibility / accessibility.gyp
blobca174fd74f57f35f7555244d75dcbe221080e5aa
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       ]
54     },
55     {
56       'target_name': 'accessibility_test_support',
57       'type': 'static_library',
58       'dependencies': [
59         '../../base/base.gyp:base',
60         'accessibility'
61       ],
62       'sources': [
63         'tree_generator.cc',
64         'tree_generator.h'
65       ]
66     },
67     {
68       'target_name': 'accessibility_unittests',
69       'type': 'executable',
70       'dependencies': [
71         '../../base/base.gyp:base',
72         '../../base/base.gyp:run_all_unittests',
73         '../../testing/gtest.gyp:gtest',
74         '../gfx/gfx.gyp:gfx',
75         '../gfx/gfx.gyp:gfx_geometry',
76         'accessibility',
77         'accessibility_test_support',
78         'ax_gen',
79       ],
80       'sources': [
81         'ax_generated_tree_unittest.cc',
82         'ax_text_utils_unittest.cc',
83         'ax_tree_serializer_unittest.cc',
84         'ax_tree_unittest.cc',
85       ]
86     },
87     {
88       'target_name': 'ax_gen',
89       'type': 'static_library',
90       # This target exports a hard dependency because dependent targets may
91       # include ax_enums.h, a generated header.
92       'hard_dependency': 1,
93       'dependencies': [
94         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations'
95         ],
96       'sources': [
97         '<@(schema_files)',
98       ],
99       'msvs_disabled_warnings': [ 4267 ],
100       'includes': [
101         '../../build/json_schema_compile.gypi',
102       ],
103       'variables': {
104         'chromium_code': 1,
105         'schema_files': [
106           'ax_enums.idl',
107         ],
108         'non_compiled_schema_files': [],
109         'cc_dir': 'ui/accessibility',
110         # TODO(dtseng): Change this once all files under ui/accessibility
111         # namespaced under ui::ax.
112         'root_namespace': 'ui',
113       },
114     },
115   ],
116   'conditions': [
117     ['test_isolation_mode != "noop"', {
118       'targets': [
119         {
120           'target_name': 'accessibility_unittests_run',
121           'type': 'none',
122           'dependencies': [
123             'accessibility_unittests',
124           ],
125           'includes': [
126             '../../build/isolate.gypi',
127           ],
128           'sources': [
129             'accessibility_unittests.isolate',
130           ],
131           'conditions': [
132             ['use_x11 == 1', {
133               'dependencies': [
134                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
135               ],
136             }],
137           ],
138         },
139       ],
140     }],
141   ],