| OLD | NEW |
| 1 #!/usr/bin/perl -w | 1 #!/usr/bin/perl -w |
| 2 | 2 |
| 3 # Copyright (C) 2011 Adam Barth <abarth@webkit.org> | 3 # Copyright (C) 2011 Adam Barth <abarth@webkit.org> |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions | 6 # modification, are permitted provided that the following conditions |
| 7 # are met: | 7 # are met: |
| 8 # 1. Redistributions of source code must retain the above copyright | 8 # 1. Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # 2. Redistributions in binary form must reproduce the above copyright | 10 # 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 my $file = new IO::File; | 109 my $file = new IO::File; |
| 110 open($file, $inputFile) or die "Failed to open file: $!"; | 110 open($file, $inputFile) or die "Failed to open file: $!"; |
| 111 | 111 |
| 112 my $InParser = InFilesParser->new(); | 112 my $InParser = InFilesParser->new(); |
| 113 $InParser->parse($file, \¶meterHandler, \&itemHandler); | 113 $InParser->parse($file, \¶meterHandler, \&itemHandler); |
| 114 | 114 |
| 115 close($file); | 115 close($file); |
| 116 die "Failed to read from file: $inputFile" if (keys %parsedItems == 0); | 116 die "Failed to read from file: $inputFile" if (keys %parsedItems == 0); |
| 117 | 117 |
| 118 &$generateCode(\%parsedParameters, \%parsedItems); | 118 &$generateCode(\%parsedParameters, \%parsedItems, \%parsedItemPaths); |
| 119 } | 119 } |
| 120 | 120 |
| 121 sub license() | 121 sub license() |
| 122 { | 122 { |
| 123 return "/* | 123 return "/* |
| 124 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. | 124 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. |
| 125 * | 125 * |
| 126 * Copyright (C) 2011 Google Inc. All rights reserved. | 126 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 127 * | 127 * |
| 128 * Redistribution and use in source and binary forms, with or without | 128 * Redistribution and use in source and binary forms, with or without |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 print F "#endif\n" if $conditional; | 292 print F "#endif\n" if $conditional; |
| 293 } | 293 } |
| 294 | 294 |
| 295 print F "\n"; | 295 print F "\n"; |
| 296 print F "#endif // ${namespace}Headers_h\n"; | 296 print F "#endif // ${namespace}Headers_h\n"; |
| 297 | 297 |
| 298 close F; | 298 close F; |
| 299 } | 299 } |
| 300 | 300 |
| 301 1; | 301 1; |
| OLD | NEW |