Changeset 16342 in webkit
- Timestamp:
- Sep 13, 2006 12:08:39 AM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r16341 r16342 1 2006-09-12 Adam Roben <aroben@apple.com> 2 3 Reviewed by eseidel. 4 5 Switch back to passing relative paths to generate-bindings.pl when 6 generating JS bindings. 7 8 * DerivedSources.make: Pass in relative paths to generate-bindings.pl 9 * bindings/scripts/CodeGenerator.pm: Make ScanDirectory never call 10 chdir and always construct absolute paths instead. 11 1 12 2006-09-12 David Hyatt <hyatt@apple.com> 2 13 -
trunk/WebCore/DerivedSources.make
r16337 r16342 516 516 517 517 DOM%.h : %.idl $(OBJC_BINDINGS_SCRIPTS) bindings/objc/PublicDOMInterfaces.h 518 perl -I `pwd`/$(WebCore)/bindings/scripts `pwd`/$(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --include `pwd`/$(WebCore)/dom --include `pwd`/$(WebCore)/html --include `pwd`/$(WebCore)/xpath --include `pwd`/$(WebCore)/ksvg2/svg --outputdir `pwd`$<518 perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_OBJECTIVE_C" --generator ObjC --include $(WebCore)/dom --include $(WebCore)/html --include $(WebCore)/xpath --include $(WebCore)/ksvg2/svg --outputdir . $< 519 519 520 520 # new-style JavaScript bindings … … 529 529 530 530 JS%.h : %.idl $(JS_BINDINGS_SCRIPTS) 531 perl -I `pwd`/$(WebCore)/bindings/scripts `pwd`/$(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include `pwd`/$(WebCore)/dom --include `pwd`/$(WebCore)/html --include `pwd`/$(WebCore)/xml --include `pwd`/$(WebCore)/ksvg2/svg --outputdir `pwd`$<531 perl -I $(WebCore)/bindings/scripts $(WebCore)/bindings/scripts/generate-bindings.pl --defines "$(FEATURE_DEFINES) LANGUAGE_JAVASCRIPT" --generator JS --include dom --include html --include xml --include ksvg2/svg --outputdir . $< -
trunk/WebCore/bindings/scripts/CodeGenerator.pm
r16337 r16342 45 45 "SVGAnimatedRect" => 1, "SVGAnimatedString" => 1, 46 46 "SVGAnimatedTransformList" => 1); 47 47 48 48 # Helpers for 'ScanDirectory' 49 49 my $endCondition = 0; … … 209 209 return if ($endCondition eq 1) and ($reportAllFiles eq 0); 210 210 211 chdir($directory) or die "[ERROR] Can't enter directory $directory: \"$!\"\n";212 opendir(DIR, ".") or die "[ERROR] Can't open directory $directory: \"$!\"\n";213 214 my @names = readdir(DIR) or die "[ERROR] Cant't read directory $ directory:\"$!\"\n";211 $thisDir = "$ENV{SOURCE_ROOT}/$directory"; 212 opendir(DIR, $thisDir) or die "[ERROR] Can't open directory $thisDir: \"$!\"\n"; 213 214 my @names = readdir(DIR) or die "[ERROR] Cant't read directory $thisDir \"$!\"\n"; 215 215 closedir(DIR); 216 216 … … 221 221 222 222 # Recurisvely enter directory 223 if (-d $name) {224 $object->ScanDirectory($interface, $name, $useDirectory, $reportAllFiles);223 if (-d "$thisDir/$name") { 224 $object->ScanDirectory($interface, "$thisDir/$name", $useDirectory, $reportAllFiles); 225 225 next; 226 226 } … … 231 231 232 232 if ($condition) { 233 $foundFilename = "$ directory/$name";233 $foundFilename = "$thisDir/$name"; 234 234 235 235 if ($reportAllFiles eq 0) { … … 239 239 } 240 240 } 241 242 chdir($useDirectory) or die "[ERROR] Can't change directory to $useDirectory: \"$!\"\n";243 241 } 244 242 }
Note: See TracChangeset
for help on using the changeset viewer.