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

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

Issue 16296004: JSON export/import in generate-bindings.pl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Finalized Created 7 years, 6 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/IDLSerializer.pm ('k') | Tools/Scripts/webkitpy/bindings/main.py » ('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 b3f3d43298ac01f3e561873f5119d564763adf41..1444fa0014875a81b1ba8b17a2bce34158d05586 100755
--- a/Source/bindings/scripts/generate-bindings.pl
+++ b/Source/bindings/scripts/generate-bindings.pl
@@ -38,6 +38,7 @@ use Cwd;
use IDLParser;
use CodeGeneratorV8;
+use IDLSerializer;
my @idlDirectories;
my $outputDirectory;
@@ -184,6 +185,10 @@ foreach my $idlFile (@supplementedIdlFiles) {
}
}
+# FIXME: This code will be removed once IDLParser.pm and CodeGeneratorV8.pm
+# are connected via JSON files. See http://crbug.com/242795
+$targetDocument = deserializeJSON(serializeJSON($targetDocument));
+
# Generate desired output for the target IDL file.
my @dependentIdlFiles = ($targetDocument->fileName(), @supplementedIdlFiles);
my $codeGenerator = CodeGeneratorV8->new($targetDocument, \@idlDirectories, $preprocessor, $defines, $verbose, \@dependentIdlFiles, $writeFileOnlyIfChanged);
« no previous file with comments | « Source/bindings/scripts/IDLSerializer.pm ('k') | Tools/Scripts/webkitpy/bindings/main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698