diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 06:50:31 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-17 06:50:31 +0000 |
commit | 242d5e7aaf2658a88f1ed4954e34876d7082f1a7 (patch) | |
tree | 677cff28f304753c8e9f1d1e9062a9b2de871a77 /build/json_schema_compile.gypi | |
parent | 3543975945a5667aa3fb48c6d0e1b6312d1ed293 (diff) | |
download | chromium_src-242d5e7aaf2658a88f1ed4954e34876d7082f1a7.zip chromium_src-242d5e7aaf2658a88f1ed4954e34876d7082f1a7.tar.gz chromium_src-242d5e7aaf2658a88f1ed4954e34876d7082f1a7.tar.bz2 |
Overhaul JSON Schema Compiler to support a number of features required to
support the full range of JSON/IDL features, improve the interface of generated
code, and improve generated code formatting, notably:
* Make "choices" generate a struct containing each possible type, rather than
multiple fields with different names plus and enum. This makes it possible
to embed choices inside containers - notably within arrays (as in bug).
It also improves optional choices detection.
* Remove the Any C++ type generated by "any", and model it as a base::Value.
* Make "additionalProperties" generated a std::map with the actual types as
values, rather than just a DictionaryValue forcing callers to extract types.
* Fix enum naming, it was unnecessarily including the namespace as a prefix.
R=yoz@chromium.org
BUG=162044
Review URL: https://codereview.chromium.org/11827026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/json_schema_compile.gypi')
-rw-r--r-- | build/json_schema_compile.gypi | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/build/json_schema_compile.gypi b/build/json_schema_compile.gypi index 3e7c7c0..218b1bd 100644 --- a/build/json_schema_compile.gypi +++ b/build/json_schema_compile.gypi @@ -18,9 +18,6 @@ 'msvs_external_rule': 1, 'extension': 'json', 'inputs': [ - '<(api_gen_dir)/any.cc', - '<(api_gen_dir)/any.h', - '<(api_gen_dir)/any_helper.py', '<(api_gen_dir)/cc_generator.py', '<(api_gen_dir)/code.py', '<(api_gen_dir)/compiler.py', @@ -57,9 +54,6 @@ 'msvs_external_rule': 1, 'extension': 'idl', 'inputs': [ - '<(api_gen_dir)/any.cc', - '<(api_gen_dir)/any.h', - '<(api_gen_dir)/any_helper.py', '<(api_gen_dir)/cc_generator.py', '<(api_gen_dir)/code.py', '<(api_gen_dir)/compiler.py', |