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

Side by Side Diff: Source/core/scripts/InFilesCompiler.pm

Issue 14283012: Absolutify paths to fileapi/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: script 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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, \&parameterHandler, \&itemHandler); 113 $InParser->parse($file, \&parameterHandler, \&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
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;
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumMac.mm ('k') | Source/core/scripts/make_dom_exceptions.pl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698