Changeset 48853 in webkit


Ignore:
Timestamp:
Sep 28, 2009 9:01:09 PM (15 years ago)
Author:
ddkilzer@apple.com
Message:

2009-09-28 Yaar Schnitman <yaar@chromium.org>

Reviewed by David Kilzer.

Integrated chromium port building into webkit tools update-webkit and
build-webkit.

https://bugs.webkit.org/show_bug.cgi?id=29749

  • Scripts/build-webkit: When --chromium is specified, will build the chromium port (currently only Mac is supported).
  • Scripts/update-webkit: When --chromium is specified, delegates to update-webkit-chromium.
  • Scripts/webkitdirs.pm: Added chromium specific defs.
  • Scripts/update-webkit-chromium: Uses gclient and gyp to fetch chromium port's dependencies and update its project files.
Location:
trunk/WebKitTools
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r48852 r48853  
     12009-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
    1182009-09-28  Fumitoshi Ukai  <ukai@chromium.org>
    219
  • trunk/WebKitTools/Scripts/build-webkit

    r48400 r48853  
    11#!/usr/bin/perl -w
    22
    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.
    45#
    56# Redistribution and use in source and binary forms, with or without
     
    3940
    4041sub formatBuildTime($);
     42sub writeCongrats();
    4143
    4244my $originalWorkingDirectory = getcwd();
     
    316318}
    317319
     320if (isChromium()) {
     321    # Chromium doesn't build by project directories.
     322    @projects = ();
     323    my $result = buildChromium($clean, @options);
     324    exit $result if $result;
     325}
     326
    318327# Build, and abort if the build fails.
    319328for my $dir (@projects) {
     
    366375
    367376# 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";
     377writeCongrats();
    380378
    381379exit 0;
     
    394392    return sprintf("%02dm:%02ds", $buildMins, $buildSecs);
    395393}
     394
     395sub 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  
    22
    33# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
     4# Copyright (C) 2009 Google Inc. All rights reserved.
    45#
    56# Redistribution and use in source and binary forms, with or without
     
    4546my $showHelp;
    4647
     48determineIsChromium();
     49
    4750my $getOptionsResult = GetOptions(
    4851    'h|help'  => \$showHelp,
     
    5356    print STDERR <<__END__;
    5457Usage: @{[ basename($0) ]} [options]
     58  --chromium  also update dependencies of the chromium port
    5559  -h|--help   show the help message
    5660  -q|--quiet  pass -q to svn update for quiet updates
     
    7377    print "Updating Internal\n" unless $quiet;
    7478    runSvnUpdate();
     79} elsif (isChromium()) {
     80    system("perl", "WebKitTools/Scripts/update-webkit-chromium") == 0 or die;
    7581} elsif (isAppleWinWebKit()) {
    7682    system("perl", "WebKitTools/Scripts/update-webkit-auxiliary-libs") == 0 or die;
  • trunk/WebKitTools/Scripts/webkitdirs.pm

    r48544 r48853  
    11# Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
     2# Copyright (C) 2009 Google Inc. All rights reserved.
    23#
    34# Redistribution and use in source and binary forms, with or without
     
    996997            print "*************************************************************\n";
    997998        }
    998     } elsif (isGtk() or isQt() or isWx()) {
     999    } elsif (isGtk() or isQt() or isWx() or isChromium()) {
    9991000        my @cmds = qw(flex bison gperf);
    10001001        my @missing = ();
     
    13571358}
    13581359
     1360sub 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
    13591382sub setPathForRunningWebKitApp
    13601383{
Note: See TracChangeset for help on using the changeset viewer.