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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | ui/accessibility/ax_enums.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/accessibility.gyp
diff --git a/ui/accessibility/accessibility.gyp b/ui/accessibility/accessibility.gyp
index 2db99d636ce93e90c3c68d571e99a3e5a0d56427..d02704a7898c46fa856f3f9c7875f3e4775f002d 100644
--- a/ui/accessibility/accessibility.gyp
+++ b/ui/accessibility/accessibility.gyp
@@ -11,17 +11,20 @@
{
'target_name': 'accessibility',
'type': '<(component)',
+ 'export_dependent_settings': [
+ 'ax_gen',
+ ],
'dependencies': [
'../../base/base.gyp:base',
'../gfx/gfx.gyp:gfx',
'../gfx/gfx.gyp:gfx_geometry',
+ 'ax_gen',
],
'defines': [
'ACCESSIBILITY_IMPLEMENTATION',
],
'sources': [
# All .cc, .h under accessibility, except unittests
- 'ax_enums.h',
'ax_node.cc',
'ax_node_data.cc',
'ax_node_data.h',
@@ -47,6 +50,7 @@
'../gfx/gfx.gyp:gfx',
'../gfx/gfx.gyp:gfx_geometry',
'accessibility',
+ 'ax_gen',
],
'sources': [
'ax_generated_tree_unittest.cc',
@@ -54,5 +58,34 @@
'ax_tree_unittest.cc',
]
},
+ {
+ 'target_name': 'ax_gen',
+ 'type': 'static_library',
+ # This target exports a hard dependency because dependent targets may
+ # include ax_enums.h, a generated header.
+ 'hard_dependency': 1,
+ 'dependencies': [
+ '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations'
+ ],
+ 'sources': [
+ '<@(schema_files)',
+ ],
+ 'msvs_disabled_warnings': [ 4267 ],
+ 'includes': [
+ '../../build/json_schema_bundle_compile.gypi',
+ '../../build/json_schema_compile.gypi',
+ ],
+ 'variables': {
+ 'chromium_code': 1,
+ 'schema_files': [
+ 'ax_enums.idl',
+ ],
+ 'non_compiled_schema_files': [],
+ 'cc_dir': 'ui/accessibility',
+ # TODO(dtseng): Change this once all files under ui/accessibility
+ # namespaced under ui::ax.
+ 'root_namespace': '',
+ },
+ },
],
}
« 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