Changeset 112431 in webkit
- Timestamp:
- Mar 28, 2012 1:13:27 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r112423 r112431 1 2012-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 1 15 2012-03-28 Ojan Vafai <ojan@chromium.org> 2 16 -
trunk/Tools/Scripts/build-webkit
r112106 r112431 1 1 #!/usr/bin/perl -w 2 2 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. 4 4 # Copyright (C) 2009 Google Inc. All rights reserved. 5 5 # Copyright (C) 2010 moiji-mobile.com All rights reserved. … … 556 556 "libWebCoreSQLite3.a", 557 557 ); 558 559 my $ranlib = `xcrun -find ranlib`; 560 chomp $ranlib; 558 561 foreach my $libName (@librariesToCopy) { 559 562 my $srcLib = "WebKitLibraries/" . $libName; … … 562 565 print "Updating $lib\n"; 563 566 system "ditto", $srcLib, $lib; 564 system "ranlib", $lib;567 system $ranlib, $lib; 565 568 } 566 569 } -
trunk/Tools/Scripts/webkitdirs.pm
r112408 r112431 1 # Copyright (C) 2005, 2006, 2007, 2010, 201 2 Apple Inc. All rights reserved.1 # Copyright (C) 2005, 2006, 2007, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 2 # Copyright (C) 2009 Google Inc. All rights reserved. 3 3 # Copyright (C) 2011 Research In Motion Limited. All rights reserved. … … 57 57 ¤tSVNRevision 58 58 &debugSafari 59 &nmPath 59 60 &passedConfiguration 60 61 &printHelpAndExitForRunAndDebugWebKitAppIfNeeded … … 82 83 my $sourceDir; 83 84 my $currentSVNRevision; 85 my $nmPath; 84 86 my $osXVersion; 85 87 my $generateDsym; … … 1308 1310 } 1309 1311 1312 sub 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 1323 sub nmPath() 1324 { 1325 determineNmPath(); 1326 return $nmPath; 1327 } 1328 1310 1329 sub determineOSXVersion() 1311 1330 { -
trunk/Tools/Scripts/webkitperl/features.pm
r97333 r112431 1 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved1 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserved 2 2 # Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 3 3 # Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeged … … 32 32 use warnings; 33 33 34 use FindBin; 35 use lib $FindBin::Bin; 36 use webkitdirs; 37 34 38 BEGIN { 35 39 use Exporter (); … … 54 58 my $foundSymbol = 0; 55 59 if (-e $path) { 56 open NM, "-|", "nm", $path or die;60 open NM, "-|", nmPath(), $path or die; 57 61 while (<NM>) { 58 62 $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.