Changeset 116008 in webkit


Ignore:
Timestamp:
May 3, 2012 2:07:17 PM (12 years ago)
Author:
eric@webkit.org
Message:

Remove dead code from build-webkit for working around old XCode dependency bug
https://bugs.webkit.org/show_bug.cgi?id=85535

Reviewed by Adam Barth.

Xcode used to have a bug whereby it didn't notice if you changed the #defines
passed on the command line to xcodebuild. I wrote code to work around this
while bringing up SVG support 5-6 years ago. I think we can finally remove this
code from build-webkit, since SVG is the only feature flag to ever use it
(modern in-progress features like MathML don't seem to be using the support)
an I suspect the XCode bug has long been fixed.

  • Scripts/build-webkit:
  • Scripts/webkitperl/features.pm:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r116000 r116008  
     12012-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
    1182012-05-03  Andy Estes  <aestes@apple.com>
    219
  • trunk/Tools/Scripts/build-webkit

    r115666 r116008  
    4040use lib $FindBin::Bin;
    4141use webkitdirs;
    42 use webkitperl::features;
    4342use POSIX;
    4443
     
    422421}
    423422
    424 $svgSupport = $svgSupport || $svgDOMObjCBindingsSupport || $svgFontsSupport;
    425 
    426 $blobSupport = $blobSupport || $mediaStreamSupport;
    427 
    428423my $programName = basename($0);
    429424my $usage = <<EOF;
     
    635630# build options, etc.
    636631@projects = ("Source/WebKit") if $onlyWebKitProject;
    637 
    638 # Force re-link of existing libraries if different than expected
    639 removeLibraryDependingOnFeature("WebCore", "SVG", $svgSupport);
    640632
    641633if (isInspectorFrontend()) {
  • trunk/Tools/Scripts/webkitperl/features.pm

    r112431 r116008  
    4141   $VERSION     = 1.00;
    4242   @ISA         = qw(Exporter);
    43    @EXPORT      = qw(&checkWebCoreFeatureSupport
    44                      &removeLibraryDependingOnFeature);
     43   @EXPORT      = qw(&checkWebCoreFeatureSupport);
    4544   %EXPORT_TAGS = ( );
    4645   @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;
    6746}
    6847
     
    9574}
    9675
    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 
    107761;
Note: See TracChangeset for help on using the changeset viewer.