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

Unified Diff: Source/bindings/scripts/CodeGenerator.pm

Issue 13877023: Start putting absolute paths in generated files. Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/derived_sources.gyp ('k') | 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/scripts/CodeGenerator.pm
diff --git a/Source/bindings/scripts/CodeGenerator.pm b/Source/bindings/scripts/CodeGenerator.pm
index 094b08125197c7c94570ffda2154e34257a27c83..7f98ee59a7a77d133070cef31db2a23552338f2d 100644
--- a/Source/bindings/scripts/CodeGenerator.pm
+++ b/Source/bindings/scripts/CodeGenerator.pm
@@ -264,6 +264,24 @@ sub IDLFileForInterface
return $idlFiles->{$interfaceName};
}
+sub HFileForInterface
+{
+ my $object = shift;
+ my $interfaceName = shift;
+
+ my $idlFilename = $object->IDLFileForInterface($interfaceName)
+ or die("Could NOT find IDL file for interface \"$interfaceName\"!\n");
+
+ my $sourceRoot = $ENV{SOURCE_ROOT};
+ if ($idlFilename =~ /^$sourceRoot/) {
+ $idlFilename = substr($idlFilename, length($sourceRoot) + 1);
+ }
+ $idlFilename = "bindings/" . $idlFilename;
+ #print "${interfaceName}, ${idlFilename}, ${sourceRoot}\n";
+ $idlFilename =~ s/idl$/h/;
+ return $idlFilename;
+}
+
sub ParseInterface
{
my $object = shift;
« no previous file with comments | « Source/bindings/derived_sources.gyp ('k') | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698