From 8c311f064c0ad5a70049f771bd15677bf7c9b098 Mon Sep 17 00:00:00 2001 From: "teravest@chromium.org" Date: Sat, 17 Nov 2012 16:01:32 +0000 Subject: 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 --- ppapi/generators/idl_generator.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ppapi/generators/idl_generator.py') 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') -- cgit v1.1