Changeset 48853 in webkit
- Timestamp:
- Sep 28, 2009 9:01:09 PM (15 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r48852 r48853 1 2009-09-28 Yaar Schnitman <yaar@chromium.org> 2 3 Reviewed by David Kilzer. 4 5 Integrated chromium port building into webkit tools update-webkit and 6 build-webkit. 7 8 https://bugs.webkit.org/show_bug.cgi?id=29749 9 10 * Scripts/build-webkit: When --chromium is specified, will build 11 the chromium port (currently only Mac is supported). 12 * Scripts/update-webkit: When --chromium is specified, delegates to 13 update-webkit-chromium. 14 * Scripts/webkitdirs.pm: Added chromium specific defs. 15 * Scripts/update-webkit-chromium: Uses gclient and gyp to fetch 16 chromium port's dependencies and update its project files. 17 1 18 2009-09-28 Fumitoshi Ukai <ukai@chromium.org> 2 19 -
trunk/WebKitTools/Scripts/build-webkit
r48400 r48853 1 1 #!/usr/bin/perl -w 2 2 3 # Copyright (C) 2005, 2006 Apple Computer, Inc. All rights reserved. 3 # Copyright (C) 2005, 2006 Apple Inc. All rights reserved. 4 # Copyright (C) 2009 Google Inc. All rights reserved. 4 5 # 5 6 # Redistribution and use in source and binary forms, with or without … … 39 40 40 41 sub formatBuildTime($); 42 sub writeCongrats(); 41 43 42 44 my $originalWorkingDirectory = getcwd(); … … 316 318 } 317 319 320 if (isChromium()) { 321 # Chromium doesn't build by project directories. 322 @projects = (); 323 my $result = buildChromium($clean, @options); 324 exit $result if $result; 325 } 326 318 327 # Build, and abort if the build fails. 319 328 for my $dir (@projects) { … … 366 375 367 376 # Write out congratulations message. 368 369 my $launcherPath = launcherPath(); 370 my $launcherName = launcherName(); 371 my $endTime = time(); 372 my $buildTime = formatBuildTime($endTime - $startTime); 373 374 print "\n"; 375 print "===========================================================\n"; 376 print " WebKit is now built ($buildTime). \n"; 377 print " To run $launcherName with this newly-built code, use the\n"; 378 print " \"$launcherPath\" script.\n"; 379 print "===========================================================\n"; 377 writeCongrats(); 380 378 381 379 exit 0; … … 394 392 return sprintf("%02dm:%02ds", $buildMins, $buildSecs); 395 393 } 394 395 sub writeCongrats() 396 { 397 my $launcherPath = launcherPath(); 398 my $launcherName = launcherName(); 399 my $endTime = time(); 400 my $buildTime = formatBuildTime($endTime - @_); 401 402 print "\n"; 403 print "===========================================================\n"; 404 print " WebKit is now built ($buildTime). \n"; 405 if (!isChromium()) { 406 print " To run $launcherName with this newly-built code, use the\n"; 407 print " \"$launcherPath\" script.\n"; 408 } 409 print "===========================================================\n"; 410 } -
trunk/WebKitTools/Scripts/update-webkit
r47971 r48853 2 2 3 3 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 # Copyright (C) 2009 Google Inc. All rights reserved. 4 5 # 5 6 # Redistribution and use in source and binary forms, with or without … … 45 46 my $showHelp; 46 47 48 determineIsChromium(); 49 47 50 my $getOptionsResult = GetOptions( 48 51 'h|help' => \$showHelp, … … 53 56 print STDERR <<__END__; 54 57 Usage: @{[ basename($0) ]} [options] 58 --chromium also update dependencies of the chromium port 55 59 -h|--help show the help message 56 60 -q|--quiet pass -q to svn update for quiet updates … … 73 77 print "Updating Internal\n" unless $quiet; 74 78 runSvnUpdate(); 79 } elsif (isChromium()) { 80 system("perl", "WebKitTools/Scripts/update-webkit-chromium") == 0 or die; 75 81 } elsif (isAppleWinWebKit()) { 76 82 system("perl", "WebKitTools/Scripts/update-webkit-auxiliary-libs") == 0 or die; -
trunk/WebKitTools/Scripts/webkitdirs.pm
r48544 r48853 1 1 # Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved. 2 # Copyright (C) 2009 Google Inc. All rights reserved. 2 3 # 3 4 # Redistribution and use in source and binary forms, with or without … … 996 997 print "*************************************************************\n"; 997 998 } 998 } elsif (isGtk() or isQt() or isWx() ) {999 } elsif (isGtk() or isQt() or isWx() or isChromium()) { 999 1000 my @cmds = qw(flex bison gperf); 1000 1001 my @missing = (); … … 1357 1358 } 1358 1359 1360 sub buildChromium($@) 1361 { 1362 my ($clean, @options) = @_; 1363 1364 my $result = 1; 1365 if (isDarwin()) { 1366 # Mac build - builds the root xcode project. 1367 $result = buildXCodeProject("WebKit/chromium/webkit", $clean, (@options)); 1368 } elsif (isCygwin()) { 1369 # Windows build 1370 # FIXME support windows. 1371 print STDERR "Windows build is not supported. Yet."; 1372 } elsif (isLinux()) { 1373 # Linux build 1374 # FIXME support linux. 1375 print STDERR "Linux build is not supported. Yet."; 1376 } else { 1377 print STDERR "This platform is not supported by chromium."; 1378 } 1379 return $result; 1380 } 1381 1359 1382 sub setPathForRunningWebKitApp 1360 1383 {
Note: See TracChangeset
for help on using the changeset viewer.