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.
12 'target_name': 'accessibility',
13 'type': '<(component)',
14 'export_dependent_settings': [
19 '../../base/base.gyp:base',
21 '../gfx/gfx.gyp:gfx_geometry',
25 'ACCESSIBILITY_IMPLEMENTATION',
28 # All .cc, .h under accessibility, except unittests
33 'ax_serializable_tree.cc',
34 'ax_serializable_tree.h',
39 'ax_tree_serializer.cc',
40 'ax_tree_serializer.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',
63 '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2'
66 ['OS=="linux" and chromeos==0 and use_x11==1', {
68 '../../build/linux/system.gyp:atk',
69 '../../build/linux/system.gyp:gconf',
70 '../../build/linux/system.gyp:glib',
73 'clang_warning_flags': [
74 # glib uses the pre-c++11 typedef-as-static_assert hack.
75 '-Wno-unused-local-typedefs',
79 ['OS!="linux" or chromeos==1 or use_x11==0', {
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',
90 'target_name': 'accessibility_test_support',
91 'type': 'static_library',
93 '../../base/base.gyp:base',
97 'platform/test_ax_node_wrapper.cc',
98 'platform/test_ax_node_wrapper.h',
104 'target_name': 'accessibility_unittests',
105 'type': 'executable',
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',
113 'accessibility_test_support',
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'
126 '../../third_party/iaccessible2/iaccessible2.gyp:iaccessible2'
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,
138 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations'
143 'msvs_disabled_warnings': [ 4267 ],
145 '../../build/json_schema_compile.gypi',
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',
161 ['test_isolation_mode != "noop"', {
164 'target_name': 'accessibility_unittests_run',
167 'accessibility_unittests',
170 '../../build/isolate.gypi',
173 'accessibility_unittests.isolate',
178 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',