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

Unified Diff: Source/bindings/scripts/generate-bindings.pl

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 | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/scripts/idltopath.pm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/generate-bindings.pl
diff --git a/Source/bindings/scripts/generate-bindings.pl b/Source/bindings/scripts/generate-bindings.pl
index ca22031ad4dad90884b76add81de4e7092501abb..c7c18399bbb8f8fb47101b3c60da4dfa62b37a07 100755
--- a/Source/bindings/scripts/generate-bindings.pl
+++ b/Source/bindings/scripts/generate-bindings.pl
@@ -38,6 +38,7 @@ use Cwd;
use IDLParser;
use CodeGenerator;
+use idltopath;
my @idlDirectories;
my $outputDirectory;
@@ -47,6 +48,7 @@ my $filename;
my $preprocessor;
my $verbose;
my $supplementalDependencyFile;
+my $idlToPathFile;
my $additionalIdlFiles;
my $idlAttributesFile;
@@ -58,6 +60,7 @@ GetOptions('include=s@' => \@idlDirectories,
'preprocessor=s' => \$preprocessor,
'verbose' => \$verbose,
'supplementalDependencyFile=s' => \$supplementalDependencyFile,
+ 'idlToPathFile=s' => \$idlToPathFile,
'additionalIdlFiles=s' => \$additionalIdlFiles,
'idlAttributesFile=s' => \$idlAttributesFile);
@@ -65,6 +68,10 @@ my $targetIdlFile = $ARGV[0];
die('Must specify input file.') unless defined($targetIdlFile);
die('Must specify output directory.') unless defined($outputDirectory);
+die('Must specify idlToPathFile.') unless defined($idlToPathFile);
+
+initIdlToPath($idlToPathFile);
+
$defines = "" unless defined($defines);
if (!$outputHeadersDirectory) {
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/scripts/idltopath.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698