Chromium Code Reviews| Index: Source/bindings/scripts/generate-bindings.pl |
| diff --git a/Source/bindings/scripts/generate-bindings.pl b/Source/bindings/scripts/generate-bindings.pl |
| index 9fc5fdecd59a80d3959c3c98140a523cf31b3ce4..769d51cd37024bbfa40078d9e38eec617e666a30 100755 |
| --- a/Source/bindings/scripts/generate-bindings.pl |
| +++ b/Source/bindings/scripts/generate-bindings.pl |
| @@ -47,6 +47,7 @@ my $filename; |
| my $preprocessor; |
| my $verbose; |
| my $supplementalDependencyFile; |
| +my $idlToPathFile; |
| my $additionalIdlFiles; |
| my $idlAttributesFile; |
| @@ -58,6 +59,7 @@ GetOptions('include=s@' => \@idlDirectories, |
| 'preprocessor=s' => \$preprocessor, |
| 'verbose' => \$verbose, |
| 'supplementalDependencyFile=s' => \$supplementalDependencyFile, |
| + 'idlToPathFile=s' => \$idlToPathFile, |
| 'additionalIdlFiles=s' => \$additionalIdlFiles, |
| 'idlAttributesFile=s' => \$idlAttributesFile); |
| @@ -65,6 +67,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); |
| + |
| +# Pass some information to a low level function the ugly way. |
| +$ENV{"IDLTOPATHFILE"} = $idlToPathFile; |
|
abarth-chromium
2013/04/25 14:14:24
We should find a way to avoid messing with the env
Daniel Bratell
2013/04/25 21:24:26
This is the part where I just couldn't find a good
Daniel Bratell
2013/04/25 21:26:40
I did change it to use an explicit init function.
|
| $defines = "" unless defined($defines); |
| if (!$outputHeadersDirectory) { |