diff options
author | calamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 14:52:32 +0000 |
---|---|---|
committer | calamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 14:52:32 +0000 |
commit | cfe484905085bc55742da39f792a571615cb419b (patch) | |
tree | d655642171deba8dcbb57d5cdbe9693ee2e42dd8 /build | |
parent | 498e0a6eb258f10ad76039c3028d0f7a4ad365e4 (diff) | |
download | chromium_src-cfe484905085bc55742da39f792a571615cb419b.zip chromium_src-cfe484905085bc55742da39f792a571615cb419b.tar.gz chromium_src-cfe484905085bc55742da39f792a571615cb419b.tar.bz2 |
Adds support for the "choices" and "any" types to json_schema_compiler, as well
as miscellaneous improvements to get at least 3 more schema files compiling:
windows, tabs, and the in-progress experimental.declarative.
For description of the generator, see http://codereview.chromium.org/9114036/
BUG=
TEST=
Review URL: http://codereview.chromium.org/9309044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/json_schema_compile.gypi | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/build/json_schema_compile.gypi b/build/json_schema_compile.gypi index 940e65c..55d6d30 100644 --- a/build/json_schema_compile.gypi +++ b/build/json_schema_compile.gypi @@ -8,6 +8,7 @@ # json_schema_files: an array of json files that comprise the api model. # cc_dir: path to generated files # root_namespace: the C++ namespace that all generated files go under + # Functions and namespaces can be excluded by setting "nocompile" to true. 'api_gen_dir': '<(DEPTH)/tools/json_schema_compiler', 'api_gen': '<(api_gen_dir)/compiler.py', }, @@ -16,13 +17,16 @@ 'rule_name': 'genapi', 'extension': 'json', 'inputs': [ + '<(api_gen_dir)/cc_generator.py', '<(api_gen_dir)/code.py', '<(api_gen_dir)/compiler.py', - '<(api_gen_dir)/model.py', - '<(api_gen_dir)/cc_generator.py', - '<(api_gen_dir)/h_generator.py', + '<(api_gen_dir)/cpp_util.py', '<(api_gen_dir)/cpp_type_generator.py', - '<@(json_schema_files)', + '<(api_gen_dir)/h_generator.py', + '<(api_gen_dir)/model.py', + '<(api_gen_dir)/util.cc', + '<(api_gen_dir)/util.h', + '<(api_gen_dir)/util_cc_helper.py', ], 'outputs': [ '<(SHARED_INTERMEDIATE_DIR)/<(cc_dir)/<(RULE_INPUT_ROOT).cc', |