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

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 to a newer chromium version 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
« no previous file with comments | « no previous file | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/derived_sources.gyp
diff --git a/Source/bindings/derived_sources.gyp b/Source/bindings/derived_sources.gyp
index bcb3c9ca81a8fa986d42a9976e2e59976fe79777..c4632872af36e61bc52a9855548ebf207add832d 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 partial interfaces dependencies in all IDL files',
+ }, {
+ 'action_name': 'generateIDL2PathMapping',
+ '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',
+ '--include-root-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))',
],
@@ -201,6 +229,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698