Fix search results being clipped in app list.
[chromium-blink-merge.git] / ui / accessibility / accessibility.gyp
blobe417f101ff568cfc210280572a02d8bb64046cf8
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/atk_util_auralinux.cc',
47         'platform/atk_util_auralinux.h',
48         'platform/ax_platform_node.cc',
49         'platform/ax_platform_node.h',
50         'platform/ax_platform_node_auralinux.cc',
51         'platform/ax_platform_node_auralinux.h',
52         'platform/ax_platform_node_base.cc',
53         'platform/ax_platform_node_base.h',
54         'platform/ax_platform_node_delegate.h',
55         'platform/ax_platform_node_mac.h',
56         'platform/ax_platform_node_mac.mm',
57         'platform/ax_platform_node_win.h',
58         'platform/ax_platform_node_win.cc',
59       ],
60       'conditions': [
61         ['OS=="win"', {
62           'dependencies': [
63             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2'
64           ],
65         }],
66         ['OS=="linux" and chromeos==0 and use_x11==1', {
67           'dependencies': [
68             '../../build/linux/system.gyp:atk',
69             '../../build/linux/system.gyp:gconf',
70             '../../build/linux/system.gyp:glib',
71           ],
72           'variables': {
73             'clang_warning_flags': [
74               # glib uses the pre-c++11 typedef-as-static_assert hack.
75               '-Wno-unused-local-typedefs',
76             ],
77           },
78         }],
79         ['OS!="linux" or chromeos==1 or use_x11==0', {
80           'sources!': [
81             'platform/ax_platform_node_auralinux.cc',
82             'platform/ax_platform_node_auralinux.h',
83             'platform/atk_util_auralinux.cc',
84             'platform/atk_util_auralinux.h',
85           ],
86         }],
87       ],
88     },
89     {
90       'target_name': 'accessibility_test_support',
91       'type': 'static_library',
92       'dependencies': [
93         '../../base/base.gyp:base',
94         'accessibility'
95       ],
96       'sources': [
97         'platform/test_ax_node_wrapper.cc',
98         'platform/test_ax_node_wrapper.h',
99         'tree_generator.cc',
100         'tree_generator.h',
101       ]
102     },
103     {
104       'target_name': 'accessibility_unittests',
105       'type': 'executable',
106       'dependencies': [
107         '../../base/base.gyp:base',
108         '../../base/base.gyp:run_all_unittests',
109         '../../testing/gtest.gyp:gtest',
110         '../gfx/gfx.gyp:gfx',
111         '../gfx/gfx.gyp:gfx_geometry',
112         'accessibility',
113         'accessibility_test_support',
114         'ax_gen',
115       ],
116       'sources': [
117         'ax_generated_tree_unittest.cc',
118         'ax_text_utils_unittest.cc',
119         'ax_tree_serializer_unittest.cc',
120         'ax_tree_unittest.cc',
121         'platform/ax_platform_node_win_unittest.cc'
122       ],
123       'conditions': [
124         ['OS=="win"', {
125           'dependencies': [
126             '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2'
127           ],
128         }],
129       ],
130     },
131     {
132       'target_name': 'ax_gen',
133       'type': 'static_library',
134       # This target exports a hard dependency because dependent targets may
135       # include ax_enums.h, a generated header.
136       'hard_dependency': 1,
137       'dependencies': [
138         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations'
139         ],
140       'sources': [
141         '<@(schema_files)',
142       ],
143       'msvs_disabled_warnings': [ 4267 ],
144       'includes': [
145         '../../build/json_schema_compile.gypi',
146       ],
147       'variables': {
148         'chromium_code': 1,
149         'schema_files': [
150           'ax_enums.idl',
151         ],
152         'non_compiled_schema_files': [],
153         'cc_dir': 'ui/accessibility',
154         # TODO(dtseng): Change this once all files under ui/accessibility
155         # namespaced under ui::ax.
156         'root_namespace': 'ui',
157       },
158     },
159   ],
160   'conditions': [
161     ['test_isolation_mode != "noop"', {
162       'targets': [
163         {
164           'target_name': 'accessibility_unittests_run',
165           'type': 'none',
166           'dependencies': [
167             'accessibility_unittests',
168           ],
169           'includes': [
170             '../../build/isolate.gypi',
171           ],
172           'sources': [
173             'accessibility_unittests.isolate',
174           ],
175           'conditions': [
176             ['use_x11 == 1', {
177               'dependencies': [
178                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
179               ],
180             }],
181           ],
182         },
183       ],
184     }],
185   ],