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"; |