Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Unified Diff: Source/bindings/derived_sources.gyp

Issue 14456006: Fixes to make scripts generate includes with paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)',
« no previous file with comments | « no previous file | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | Source/bindings/scripts/CodeGeneratorV8.pm » ('J')

Powered by Google App Engine
This is Rietveld 408576698