Changeset 116008 in webkit
- Timestamp:
- May 3, 2012 2:07:17 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r116000 r116008 1 2012-05-03 Eric Seidel <eric@webkit.org> 2 3 Remove dead code from build-webkit for working around old XCode dependency bug 4 https://bugs.webkit.org/show_bug.cgi?id=85535 5 6 Reviewed by Adam Barth. 7 8 Xcode used to have a bug whereby it didn't notice if you changed the #defines 9 passed on the command line to xcodebuild. I wrote code to work around this 10 while bringing up SVG support 5-6 years ago. I think we can finally remove this 11 code from build-webkit, since SVG is the only feature flag to ever use it 12 (modern in-progress features like MathML don't seem to be using the support) 13 an I suspect the XCode bug has long been fixed. 14 15 * Scripts/build-webkit: 16 * Scripts/webkitperl/features.pm: 17 1 18 2012-05-03 Andy Estes <aestes@apple.com> 2 19 -
trunk/Tools/Scripts/build-webkit
r115666 r116008 40 40 use lib $FindBin::Bin; 41 41 use webkitdirs; 42 use webkitperl::features;43 42 use POSIX; 44 43 … … 422 421 } 423 422 424 $svgSupport = $svgSupport || $svgDOMObjCBindingsSupport || $svgFontsSupport;425 426 $blobSupport = $blobSupport || $mediaStreamSupport;427 428 423 my $programName = basename($0); 429 424 my $usage = <<EOF; … … 635 630 # build options, etc. 636 631 @projects = ("Source/WebKit") if $onlyWebKitProject; 637 638 # Force re-link of existing libraries if different than expected639 removeLibraryDependingOnFeature("WebCore", "SVG", $svgSupport);640 632 641 633 if (isInspectorFrontend()) { -
trunk/Tools/Scripts/webkitperl/features.pm
r112431 r116008 41 41 $VERSION = 1.00; 42 42 @ISA = qw(Exporter); 43 @EXPORT = qw(&checkWebCoreFeatureSupport 44 &removeLibraryDependingOnFeature); 43 @EXPORT = qw(&checkWebCoreFeatureSupport); 45 44 %EXPORT_TAGS = ( ); 46 45 @EXPORT_OK = (); 47 }48 49 sub libraryContainsSymbol($$)50 {51 my ($path, $symbol) = @_;52 53 if (isCygwin() or isWindows()) {54 # FIXME: Implement this for Windows.55 return 0;56 }57 58 my $foundSymbol = 0;59 if (-e $path) {60 open NM, "-|", nmPath(), $path or die;61 while (<NM>) {62 $foundSymbol = 1 if /$symbol/; # FIXME: This should probably check for word boundaries before/after the symbol name.63 }64 close NM;65 }66 return $foundSymbol;67 46 } 68 47 … … 95 74 } 96 75 97 sub removeLibraryDependingOnFeature($$$)98 {99 my ($libraryName, $featureName, $shouldHaveFeature) = @_;100 my $path = builtDylibPathForName($libraryName);101 return unless -x $path;102 103 my $hasFeature = hasFeature($featureName, $path);104 system "rm -f $path" if ($shouldHaveFeature xor $hasFeature);105 }106 107 76 1;
Note: See TracChangeset
for help on using the changeset viewer.