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

Side by Side Diff: Source/bindings/scripts/code_generator_v8.pm

Issue 24156003: Revert IDL compiler build flow to Perl, rename 'deprecated' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 3 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 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com>
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org>
5 # Copyright (C) 2006 Apple Computer, Inc. 5 # Copyright (C) 2006 Apple Computer, Inc.
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc.
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved.
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. 10 # Copyright (C) 2012 Ericsson AB. All rights reserved.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } else { 100 } else {
101 $code .= $content; 101 $code .= $content;
102 } 102 }
103 } 103 }
104 $code .= $footer . "\n" if $footer; 104 $code .= $footer . "\n" if $footer;
105 $code .= "/* END " . $object->{name} . " */\n" if $verbose; 105 $code .= "/* END " . $object->{name} . " */\n" if $verbose;
106 return $code; 106 return $code;
107 } 107 }
108 108
109 109
110 package deprecated_code_generator_v8; 110 package code_generator_v8;
111 111
112 use strict; 112 use strict;
113 use Cwd; 113 use Cwd;
114 use File::Basename; 114 use File::Basename;
115 use File::Find; 115 use File::Find;
116 use File::Spec; 116 use File::Spec;
117 117
118 my $idlDocument; 118 my $idlDocument;
119 my $idlDirectories; 119 my $idlDirectories;
120 my $preprocessor; 120 my $preprocessor;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 return $cachedInterfaces->{$interfaceName}; 297 return $cachedInterfaces->{$interfaceName};
298 } 298 }
299 299
300 # Step #1: Find the IDL file associated with 'interface' 300 # Step #1: Find the IDL file associated with 'interface'
301 my $filename = IDLFileForInterface($interfaceName) 301 my $filename = IDLFileForInterface($interfaceName)
302 or die("Could NOT find IDL file for interface \"$interfaceName\" $!\n"); 302 or die("Could NOT find IDL file for interface \"$interfaceName\" $!\n");
303 303
304 print " | |> Parsing parent IDL \"$filename\" for interface \"$interfaceN ame\"\n" if $verbose; 304 print " | |> Parsing parent IDL \"$filename\" for interface \"$interfaceN ame\"\n" if $verbose;
305 305
306 # Step #2: Parse the found IDL file (in quiet mode). 306 # Step #2: Parse the found IDL file (in quiet mode).
307 my $parser = deprecated_idl_parser->new(1); 307 my $parser = idl_parser->new(1);
308 my $document = $parser->Parse($filename, $preprocessor); 308 my $document = $parser->Parse($filename, $preprocessor);
309 309
310 foreach my $interface (@{$document->interfaces}) { 310 foreach my $interface (@{$document->interfaces}) {
311 if ($interface->name eq $interfaceName or $interface->isPartial) { 311 if ($interface->name eq $interfaceName or $interface->isPartial) {
312 $cachedInterfaces->{$interfaceName} = $interface; 312 $cachedInterfaces->{$interfaceName} = $interface;
313 return $interface; 313 return $interface;
314 } 314 }
315 } 315 }
316 316
317 die("Could NOT find interface definition for $interfaceName in $filename"); 317 die("Could NOT find interface definition for $interfaceName in $filename");
(...skipping 5740 matching lines...) Expand 10 before | Expand all | Expand 10 after
6058 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { 6058 if ($currentInterface->extendedAttributes->{$extendedAttribute}) {
6059 $found = 1; 6059 $found = 1;
6060 } 6060 }
6061 return 1 if $found; 6061 return 1 if $found;
6062 }, 0); 6062 }, 0);
6063 6063
6064 return $found; 6064 return $found;
6065 } 6065 }
6066 6066
6067 1; 6067 1;
OLDNEW
« no previous file with comments | « Source/bindings/scripts/blink_idl_parser.py ('k') | Source/bindings/scripts/code_generator_v8.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698