Changeset 137519 in webkit
- Timestamp:
- Dec 12, 2012, 3:01:06 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r137516 r137519 1 2012-12-12 Tony Chang <tony@chromium.org> 2 3 [chromium] don't write additional idl files to a gyp temp file 4 https://bugs.webkit.org/show_bug.cgi?id=104831 5 6 Reviewed by Kentaro Hara. 7 8 The <|( command doesn't work for files like <(PRODUCT_DIR) or <(SHARED_INTERMEDIATE_DIR). 9 For additional_idl_files, pass it as a parameter instead of a file listing the filenames. 10 There are currently only 3 files in this variable. This shouldn't overflow the command 11 line since the limit on Windows is 8k and with this change, we're still only around 4.5k. 12 Also, the longest part of the command line is the list of defines. If needed, we could put 13 that in a file instead. 14 15 No new tests, this is a refactoring of the build files. 16 17 * WebCore.gyp/WebCore.gyp: Don't use <|( for additional_idl_files. 18 * bindings/scripts/generate-bindings.pl: Change --additionalIdlFilesList to 19 --additionalIdlFiles, which is a shell argument containing the filenames. 20 1 21 2012-12-12 Chris Rogers <crogers@google.com> 2 22 -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r136979 r137519 581 581 'generate_supplemental_dependency', 582 582 ], 583 'variables': {584 # Write sources into a file, so that the action command line won't585 # exceed OS limits.586 'additional_idl_files_list': '<|(additional_idl_files_list.tmp <@(webcore_test_support_idl_files))',587 },588 583 'sources': [ 589 584 # bison rule … … 1170 1165 '../bindings/scripts/preprocessor.pm', 1171 1166 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 1172 '<(additional_idl_files_list)', 1173 '<!@(cat <(additional_idl_files_list))', 1167 '<@(webcore_test_support_idl_files)', 1174 1168 ], 1175 1169 'outputs': [ … … 1225 1219 '--supplementalDependencyFile', 1226 1220 '<(SHARED_INTERMEDIATE_DIR)/supplemental_dependency.tmp', 1227 '--additionalIdlFiles List',1228 '<( additional_idl_files_list)',1221 '--additionalIdlFiles', 1222 '<(webcore_test_support_idl_files)', 1229 1223 '<(RULE_INPUT_PATH)', 1230 1224 '<@(preprocessor)', -
trunk/Source/WebCore/bindings/scripts/generate-bindings.pl
r135229 r137519 34 34 use File::Basename; 35 35 use Getopt::Long; 36 use Text::ParseWords; 36 37 use Cwd; 37 38 … … 50 51 my $verbose; 51 52 my $supplementalDependencyFile; 52 my $additionalIdlFiles List;53 my $additionalIdlFiles; 53 54 54 55 GetOptions('include=s@' => \@idlDirectories, … … 63 64 'write-dependencies' => \$writeDependencies, 64 65 'supplementalDependencyFile=s' => \$supplementalDependencyFile, 65 'additionalIdlFiles List=s' => \$additionalIdlFilesList);66 'additionalIdlFiles=s' => \$additionalIdlFiles); 66 67 67 68 my $targetIdlFile = $ARGV[0]; … … 103 104 close FH; 104 105 105 # The file $additionalIdlFilesList contains one IDL file per line: 106 # P.idl 107 # Q.idl 108 # ... 109 # These IDL files are ones which should not be included in DerivedSources*.cpp 110 # (i.e. they are not described in the supplemental dependency file) 111 # but should generate .h and .cpp files. 112 if (!$idlFound and $additionalIdlFilesList) { 113 open FH, "< $additionalIdlFilesList" or die "Cannot open $additionalIdlFilesList\n"; 114 my @idlFiles = <FH>; 115 chomp(@idlFiles); 106 # $additionalIdlFiles is list of IDL files which should not be included in 107 # DerivedSources*.cpp (i.e. they are not described in the supplemental 108 # dependency file) but should generate .h and .cpp files. 109 if (!$idlFound and $additionalIdlFiles) { 110 my @idlFiles = shellwords($additionalIdlFiles); 116 111 $idlFound = grep { $_ and basename($_) eq basename($targetIdlFile) } @idlFiles; 117 close FH;118 112 } 119 113
Note:
See TracChangeset
for help on using the changeset viewer.