Changeset 112431 in webkit


Ignore:
Timestamp:
Mar 28, 2012 1:13:27 PM (12 years ago)
Author:
ddkilzer@apple.com
Message:

Use xcrun to find nm and ranlib on OS X builds
<http://webkit.org/b/82466>

Reviewed by Dan Bernstein.

  • Scripts/build-webkit: Use xcrun to find ranlib.
  • Scripts/webkitdirs.pm:

(determineNmPath): Added. Use xcrun to find nm on OS X.
(nmPath): Added.

  • Scripts/webkitperl/features.pm:

(libraryContainsSymbol): Use nmPath().

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r112423 r112431  
     12012-03-28  David Kilzer  <ddkilzer@apple.com>
     2
     3        Use xcrun to find nm and ranlib on OS X builds
     4        <http://webkit.org/b/82466>
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * Scripts/build-webkit: Use xcrun to find ranlib.
     9        * Scripts/webkitdirs.pm:
     10        (determineNmPath): Added.  Use xcrun to find nm on OS X.
     11        (nmPath): Added.
     12        * Scripts/webkitperl/features.pm:
     13        (libraryContainsSymbol): Use nmPath().
     14
    1152012-03-28  Ojan Vafai  <ojan@chromium.org>
    216
  • trunk/Tools/Scripts/build-webkit

    r112106 r112431  
    11#!/usr/bin/perl -w
    22
    3 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
     3# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
    44# Copyright (C) 2009 Google Inc. All rights reserved.
    55# Copyright (C) 2010 moiji-mobile.com All rights reserved.
     
    556556        "libWebCoreSQLite3.a",
    557557    );
     558
     559    my $ranlib = `xcrun -find ranlib`;
     560    chomp $ranlib;
    558561    foreach my $libName (@librariesToCopy) {
    559562        my $srcLib = "WebKitLibraries/" . $libName;
     
    562565            print "Updating $lib\n";
    563566            system "ditto", $srcLib, $lib;
    564             system "ranlib", $lib;
     567            system $ranlib, $lib;
    565568        }
    566569    }
  • trunk/Tools/Scripts/webkitdirs.pm

    r112408 r112431  
    1 # Copyright (C) 2005, 2006, 2007, 2010, 2012 Apple Inc. All rights reserved.
     1# Copyright (C) 2005, 2006, 2007, 2010, 2011, 2012 Apple Inc. All rights reserved.
    22# Copyright (C) 2009 Google Inc. All rights reserved.
    33# Copyright (C) 2011 Research In Motion Limited. All rights reserved.
     
    5757       &currentSVNRevision
    5858       &debugSafari
     59       &nmPath
    5960       &passedConfiguration
    6061       &printHelpAndExitForRunAndDebugWebKitAppIfNeeded
     
    8283my $sourceDir;
    8384my $currentSVNRevision;
     85my $nmPath;
    8486my $osXVersion;
    8587my $generateDsym;
     
    13081310}
    13091311
     1312sub determineNmPath()
     1313{
     1314    return if $nmPath;
     1315
     1316    if (isAppleMacWebKit()) {
     1317        $nmPath = `xcrun -find nm`;
     1318        chomp $nmPath;
     1319    }
     1320    $nmPath = "nm" if !$nmPath;
     1321}
     1322
     1323sub nmPath()
     1324{
     1325    determineNmPath();
     1326    return $nmPath;
     1327}
     1328
    13101329sub determineOSXVersion()
    13111330{
  • trunk/Tools/Scripts/webkitperl/features.pm

    r97333 r112431  
    1 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved
     1# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserved
    22# Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
    33# Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeged
     
    3232use warnings;
    3333
     34use FindBin;
     35use lib $FindBin::Bin;
     36use webkitdirs;
     37
    3438BEGIN {
    3539   use Exporter   ();
     
    5458    my $foundSymbol = 0;
    5559    if (-e $path) {
    56         open NM, "-|", "nm", $path or die;
     60        open NM, "-|", nmPath(), $path or die;
    5761        while (<NM>) {
    5862            $foundSymbol = 1 if /$symbol/; # FIXME: This should probably check for word boundaries before/after the symbol name.
Note: See TracChangeset for help on using the changeset viewer.