diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:08:45 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-24 02:08:45 +0000 |
commit | a9ead75506071e83ee16bd71b33f0e31d6b1a29f (patch) | |
tree | f6304ce7f46c8eca028394abc0f9360b9b62be04 /tools/json_schema_compiler/compiler.py | |
parent | 26b8edabad74c4111b64fc8bb6edad95252053f5 (diff) | |
download | chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.zip chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.tar.gz chromium_src-a9ead75506071e83ee16bd71b33f0e31d6b1a29f.tar.bz2 |
Add support for 'nocompile' to IDL schema compiler.
The json schema stuff already has this support, to skip generation of C++
code for certain functions. Doing the same thing for IDL is slightly
complicated by the fact that we still want to generate JSON for functions
marked nocompile.
BUG=129080
TEST=includes unit and browser tests
Review URL: https://chromiumcodereview.appspot.com/10435003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/compiler.py')
-rwxr-xr-x | tools/json_schema_compiler/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py index 593f687..0813ee5 100755 --- a/tools/json_schema_compiler/compiler.py +++ b/tools/json_schema_compiler/compiler.py @@ -48,7 +48,7 @@ def handle_single_schema(filename, dest_dir, root, root_namespace): schema = os.path.normpath(filename) schema_filename, schema_extension = os.path.splitext(schema) path, short_filename = os.path.split(schema_filename) - api_defs = load_schema(schema) + api_defs = json_schema.DeleteNocompileNodes(load_schema(schema)) api_model = model.Model() |