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

Unified Diff: Source/bindings/scripts/deprecated_generate_bindings.pl

Issue 24053003: Support partial interface for test support idls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/scripts/deprecated_generate_bindings.pl
diff --git a/Source/bindings/scripts/deprecated_generate_bindings.pl b/Source/bindings/scripts/deprecated_generate_bindings.pl
index 6850264d063ede4d24f24ea69a260f7502f5fe61..c3f7dff6a309fbbefd867031262eaf6d275542e8 100755
--- a/Source/bindings/scripts/deprecated_generate_bindings.pl
+++ b/Source/bindings/scripts/deprecated_generate_bindings.pl
@@ -38,6 +38,7 @@ my $outputDirectory;
my $preprocessor;
my $verbose;
my $interfaceDependenciesFile;
+my $testSupportInterfaceDependenciesFile;
my $additionalIdlFiles;
my $idlAttributesFile;
my $writeFileOnlyIfChanged;
@@ -47,6 +48,7 @@ GetOptions('include=s@' => \@idlDirectories,
'preprocessor=s' => \$preprocessor,
'verbose' => \$verbose,
'interfaceDependenciesFile=s' => \$interfaceDependenciesFile,
+ 'testSupportInterfaceDependenciesFile=s' => \$testSupportInterfaceDependenciesFile,
'additionalIdlFiles=s' => \$additionalIdlFiles,
'idlAttributesFile=s' => \$idlAttributesFile,
'write-file-only-if-changed=s' => \$writeFileOnlyIfChanged);
@@ -64,6 +66,7 @@ my $targetInterfaceName = fileparse(basename($targetIdlFile), ".idl");
my $idlFound = 0;
my @dependencyIdlFiles;
+my @testSupportDependencyIdlfiles;
if ($interfaceDependenciesFile) {
# The format of the interface dependencies file:
#
@@ -88,6 +91,18 @@ if ($interfaceDependenciesFile) {
}
close FH;
+ if ($testSupportInterfaceDependenciesFile) {
+ open FH, "< $testSupportInterfaceDependenciesFile" or die "Cannot open $testSupportInterfaceDependenciesFile\n";
+ while (my $line = <FH>) {
+ my ($idlFile, @followingIdlFiles) = split(/\s+/, $line);
+ if ($idlFile and basename($idlFile) eq basename($targetIdlFile)) {
+ $idlFound = 1;
+ @testSupportDependencyIdlfiles = sort @followingIdlFiles;
+ }
+ }
+ close FH;
+ }
+
# $additionalIdlFiles is list of IDL files which should not be included in
# DerivedSources*.cpp (i.e. they are not described in the interface
# dependencies file) but should generate .h and .cpp files.
@@ -112,6 +127,7 @@ if ($idlAttributesFile) {
checkIDLAttributes($idlAttributes, $targetDocument, basename($targetIdlFile));
}
+push @dependencyIdlFiles, @testSupportDependencyIdlfiles;
foreach my $idlFile (@dependencyIdlFiles) {
next if $idlFile eq $targetIdlFile;

Powered by Google App Engine
This is Rietveld 408576698