Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: ui/accessibility/accessibility.gyp

Issue 143473003: Generate ax enums from idl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Caught Blink enum conversion bug! Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | ui/accessibility/ax_enums.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 9
10 'targets': [ 10 'targets': [
11 { 11 {
12 'target_name': 'accessibility', 12 'target_name': 'accessibility',
13 'type': '<(component)', 13 'type': '<(component)',
14 'export_dependent_settings': [
15 'ax_gen',
16 ],
14 'dependencies': [ 17 'dependencies': [
15 '../../base/base.gyp:base', 18 '../../base/base.gyp:base',
16 '../gfx/gfx.gyp:gfx', 19 '../gfx/gfx.gyp:gfx',
17 '../gfx/gfx.gyp:gfx_geometry', 20 '../gfx/gfx.gyp:gfx_geometry',
21 'ax_gen',
18 ], 22 ],
19 'defines': [ 23 'defines': [
20 'ACCESSIBILITY_IMPLEMENTATION', 24 'ACCESSIBILITY_IMPLEMENTATION',
21 ], 25 ],
22 'sources': [ 26 'sources': [
23 # All .cc, .h under accessibility, except unittests 27 # All .cc, .h under accessibility, except unittests
24 'ax_enums.h',
25 'ax_node.cc', 28 'ax_node.cc',
26 'ax_node_data.cc', 29 'ax_node_data.cc',
27 'ax_node_data.h', 30 'ax_node_data.h',
28 'ax_node.h', 31 'ax_node.h',
29 'ax_serializable_tree.cc', 32 'ax_serializable_tree.cc',
30 'ax_serializable_tree.h', 33 'ax_serializable_tree.h',
31 'ax_tree.cc', 34 'ax_tree.cc',
32 'ax_tree.h', 35 'ax_tree.h',
33 'ax_tree_serializer.cc', 36 'ax_tree_serializer.cc',
34 'ax_tree_serializer.h', 37 'ax_tree_serializer.h',
35 'ax_tree_source.h', 38 'ax_tree_source.h',
36 'ax_tree_update.cc', 39 'ax_tree_update.cc',
37 'ax_tree_update.h', 40 'ax_tree_update.h',
38 ] 41 ]
39 }, 42 },
40 { 43 {
41 'target_name': 'accessibility_unittests', 44 'target_name': 'accessibility_unittests',
42 'type': 'executable', 45 'type': 'executable',
43 'dependencies': [ 46 'dependencies': [
44 '../../base/base.gyp:base', 47 '../../base/base.gyp:base',
45 '../../base/base.gyp:run_all_unittests', 48 '../../base/base.gyp:run_all_unittests',
46 '../../testing/gtest.gyp:gtest', 49 '../../testing/gtest.gyp:gtest',
47 '../gfx/gfx.gyp:gfx', 50 '../gfx/gfx.gyp:gfx',
48 '../gfx/gfx.gyp:gfx_geometry', 51 '../gfx/gfx.gyp:gfx_geometry',
49 'accessibility', 52 'accessibility',
53 'ax_gen',
50 ], 54 ],
51 'sources': [ 55 'sources': [
52 'ax_generated_tree_unittest.cc', 56 'ax_generated_tree_unittest.cc',
53 'ax_tree_serializer_unittest.cc', 57 'ax_tree_serializer_unittest.cc',
54 'ax_tree_unittest.cc', 58 'ax_tree_unittest.cc',
55 ] 59 ]
56 }, 60 },
61 {
62 'target_name': 'ax_gen',
63 'type': 'static_library',
64 # This target exports a hard dependency because dependent targets may
65 # include ax_enums.h, a generated header.
66 'hard_dependency': 1,
67 'dependencies': [
68 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna mic_annotations'
69 ],
70 'sources': [
71 '<@(schema_files)',
72 ],
73 'msvs_disabled_warnings': [ 4267 ],
74 'includes': [
75 '../../build/json_schema_bundle_compile.gypi',
76 '../../build/json_schema_compile.gypi',
77 ],
78 'variables': {
79 'chromium_code': 1,
80 'schema_files': [
81 'ax_enums.idl',
82 ],
83 'non_compiled_schema_files': [],
84 'cc_dir': 'ui/accessibility',
85 # TODO(dtseng): Change this once all files under ui/accessibility
86 # namespaced under ui::ax.
87 'root_namespace': '',
88 },
89 },
57 ], 90 ],
58 } 91 }
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | ui/accessibility/ax_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698