Index: Source/bindings/derived_sources.gyp |
diff --git a/Source/bindings/derived_sources.gyp b/Source/bindings/derived_sources.gyp |
index 79d2859dddf48db34bbd7ed01f6260eb966dc747..bcf28a0af7c4f95fe4ffd914cbf0660f60dde6a2 100644 |
--- a/Source/bindings/derived_sources.gyp |
+++ b/Source/bindings/derived_sources.gyp |
@@ -119,6 +119,33 @@ |
'<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', |
], |
'message': 'Resolving [Supplemental=XXX] dependencies in all IDL files', |
+ }, { |
+ 'action_name': 'generateIDL2PathMapping', |
abarth-chromium
2013/04/25 14:14:24
Maybe rather than calling this an IDL2PathMap, we
Daniel Bratell
2013/04/25 21:24:26
It kind of is. The binding scripts work on IDL int
|
+ 'variables': { |
+ # Write sources into a file, so that the action command line |
+ # won't exceed OS limits. |
+ 'idl_files_list': '<|(idl_files_list.tmp <@(idl_files))', |
+ }, |
+ 'inputs': [ |
+ '../bindings/scripts/idltopathgenerator.py', |
+ '<(idl_files_list)', |
+ '<!@(cat <(idl_files_list))', |
+ ], |
+ 'outputs': [ |
+ '<(SHARED_INTERMEDIATE_DIR)/idltopath.tmp', |
+ ], |
+ 'msvs_cygwin_shell': 0, |
+ 'action': [ |
+ 'python', |
+ '../bindings/scripts/idltopathgenerator.py', |
+ '--blink-source-directory', |
+ '..', |
+ '--idl-list-file', |
+ '<(idl_files_list)', |
+ '--output-file', |
+ '<(SHARED_INTERMEDIATE_DIR)/idltopath.tmp', |
+ ], |
+ 'message': 'Generating a map from IDL name to header file path.', |
}] |
}, |
{ |
@@ -160,6 +187,7 @@ |
'scripts/CodeGeneratorV8.pm', |
'scripts/IDLParser.pm', |
'scripts/IDLAttributes.txt', |
+ 'scripts/idltopath.pm', |
'../core/scripts/preprocessor.pm', |
'<!@pymod_do_main(supplemental_idl_files <@(idl_files))', |
], |
@@ -217,6 +245,8 @@ |
'<@(generator_include_dirs)', |
'--supplementalDependencyFile', |
'<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', |
+ '--idlToPathFile', |
+ '<(SHARED_INTERMEDIATE_DIR)/idltopath.tmp', |
'--additionalIdlFiles', |
'<(webcore_test_support_idl_files)', |
'<(RULE_INPUT_PATH)', |