diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 16:01:32 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-17 16:01:32 +0000 |
commit | 8c311f064c0ad5a70049f771bd15677bf7c9b098 (patch) | |
tree | 2a2727243475ff72eec47736e2567db064bba953 /ppapi/generators/idl_generator.py | |
parent | d68206fcca8a719e5152a09c6e9d235cdbcdeec3 (diff) | |
download | chromium_src-8c311f064c0ad5a70049f771bd15677bf7c9b098.zip chromium_src-8c311f064c0ad5a70049f771bd15677bf7c9b098.tar.gz chromium_src-8c311f064c0ad5a70049f771bd15677bf7c9b098.tar.bz2 |
Add support for generating thunk source from IDL.
This introduces a few new IDL attributes:
generate_thunk - Enables thunk generation for an IDL file.
create_func - Overrides the guessed create function name.
on_failure - Overrides the default return value on failure.
report_errors - Allows error reporting to be disabled.
By using these attributes, we can generate _thunk.cc files for many IDL
files.
I'll send CLs for moving the thunks separately, as I found it tiring to
review them all in a big lump. I have PPB_Widget_Dev here as an example.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11417010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168450 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators/idl_generator.py')
-rwxr-xr-x | ppapi/generators/idl_generator.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ppapi/generators/idl_generator.py b/ppapi/generators/idl_generator.py index 218b6b4..63277d2 100755 --- a/ppapi/generators/idl_generator.py +++ b/ppapi/generators/idl_generator.py @@ -11,6 +11,7 @@ from idl_parser import ParseFiles GeneratorList = [] +Option('out', 'List of output files', default='') Option('release', 'Which release to generate.', default='') Option('range', 'Which ranges in the form of MIN,MAX.', default='start,end') |