Chromium Code Reviews| Index: Source/core/scripts/InFilesCompiler.pm |
| diff --git a/Source/core/scripts/InFilesCompiler.pm b/Source/core/scripts/InFilesCompiler.pm |
| index 451a387fa2ef8664af8877f56958b4180d67d056..abc8bfa2273c6a03fb37c766ccb9ee00a57f0241 100644 |
| --- a/Source/core/scripts/InFilesCompiler.pm |
| +++ b/Source/core/scripts/InFilesCompiler.pm |
| @@ -37,6 +37,11 @@ require Config; |
| package InFilesCompiler; |
| +use FindBin; # locate this script |
| +use lib "$FindBin::Bin/../../../../../third_party/WebKit/Source/bindings/scripts"; # use the binding generator directory. |
|
abarth-chromium
2013/04/25 14:14:24
Woah there. The code shouldn't know that it's con
Daniel Bratell
2013/04/25 21:24:26
Someone will need to know how to find this piece o
Daniel Bratell
2013/04/25 21:26:40
-I flags to the perl executable was a better way.
|
| +#use lib "$FindBin::Bin/../../bindings/scripts"; # use the binding generator directory. |
| +use idltopath; |
| + |
| my $inputFile = ""; |
| my $outputDir = "."; |
| my $defaultItemFactory; |
| @@ -116,6 +121,8 @@ sub license() |
| return "/* |
| * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. |
| * |
| + * This file was generated by the make_names.pl/InFilesCompiler.pm script. |
| + * |
| * Copyright (C) 2011 Google Inc. All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| @@ -276,9 +283,10 @@ sub generateHeadersHeader() |
| next if defined($includedInterfaces{$interfaceName}); |
| $includedInterfaces{$interfaceName} = 1; |
| + my $includepath = idl_to_path($interfaceName); |
| print F "#if " . $object->conditionalStringFromAttributeValue($conditional) . "\n" if $conditional; |
| - print F "#include \"$interfaceName.h\"\n"; |
| + print F "#include \"$includepath$interfaceName.h\"\n"; |
| print F "#include \"V8$interfaceName.h\"\n"; |
| print F "#endif\n" if $conditional; |
| } |