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

Unified Diff: Source/core/scripts/make_dom_exceptions.pl

Issue 14456006: Fixes to make scripts generate includes with paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/core/scripts/make_dom_exceptions.pl
diff --git a/Source/core/scripts/make_dom_exceptions.pl b/Source/core/scripts/make_dom_exceptions.pl
index 06e1890150866f1b82614c5b8a008f69dbd85549..1484fba60a595bf0b23fc49049d9b31bb50a2106 100644
--- a/Source/core/scripts/make_dom_exceptions.pl
+++ b/Source/core/scripts/make_dom_exceptions.pl
@@ -34,6 +34,10 @@ use strict;
use InFilesCompiler;
+use FindBin; # locate this script
+use lib "$FindBin::Bin/../bindings/script"; # use the binding generator directory.
+use idltopath;
+
my %defaultParameters = (
'namespace' => 0
);
@@ -141,17 +145,18 @@ sub generateImplementation()
print F "#include \"config.h\"\n";
print F "#include \"ExceptionCodeDescription.h\"\n";
print F "\n";
- print F "#include \"ExceptionCode.h\"\n";
+ print F "#include \"core/dom/ExceptionCode.h\"\n";
for my $exceptionType (sort keys %parsedItems) {
my $conditional = $parsedItems{$exceptionType}{"conditional"};
print F "#if ENABLE($conditional)\n" if $conditional;
- print F "#include \"$exceptionType.h\"\n";
+ my $exceptionpath = idl_to_path($exceptionType);
+ print F "#include \"$exceptionpath$exceptionType.h\"\n";
print F "#endif\n" if $conditional;
}
- print F "#include \"IDBDatabaseException.h\"\n";
+ print F "#include \"modules/indexeddb/IDBDatabaseException.h\"\n";
print F "\n";
print F "namespace WebCore {\n";

Powered by Google App Engine
This is Rietveld 408576698