Changeset 30789

Show
Ignore:
Timestamp:
03/04/08 22:54:54 (9 months ago)
Author:
alp@webkit.org
Message:

2008-03-04 Alp Toker <alp@atoker.com>

Reviewed by Mark Rowe.

Switch the default GTK+ build system from qmake to autotools.

qmake can still be used by defining WEBKIT_BUILD_SYSTEM=qmake

  • Scripts/build-webkit:
  • Scripts/run-launcher:
  • Scripts/run-webkit-tests:
  • Scripts/webkitdirs.pm:
Location:
trunk/WebKitTools
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r30763 r30789  
     12008-03-04  Alp Toker  <alp@atoker.com> 
     2 
     3        Reviewed by Mark Rowe. 
     4 
     5        Switch the default GTK+ build system from qmake to autotools. 
     6 
     7        qmake can still be used by defining WEBKIT_BUILD_SYSTEM=qmake 
     8 
     9        * Scripts/build-webkit: 
     10        * Scripts/run-launcher: 
     11        * Scripts/run-webkit-tests: 
     12        * Scripts/webkitdirs.pm: 
     13 
    1142008-03-04  Sam Weinig  <sam@webkit.org> 
    215 
  • trunk/WebKitTools/Scripts/build-webkit

    r30597 r30789  
    207207 
    208208# enable autotool options accordingly 
    209 if ($ENV{WEBKITAUTOTOOLS}) { 
     209if (isGtk() && !useQmake()) { 
    210210    push @options, autotoolsFlag($crossDocumentMessagingSupport, "cross-document-messaging"); 
    211211    push @options, autotoolsFlag($databaseSupport, "database"); 
     
    269269} 
    270270 
    271 if (isGtk() && isDarwin() && !$ENV{WEBKITAUTOTOOLS} && !$ENV{QMAKESPEC}) { 
     271if (isGtk() && isDarwin() && useQmake() && !$ENV{QMAKESPEC}) { 
    272272    # The qmake from Trolltech's binary "QT for Mac" distribution tries to 
    273273    # create xcode projects, not Makefiles 
  • trunk/WebKitTools/Scripts/run-launcher

    r29993 r30789  
    4646 
    4747# Set paths according to the build system used 
    48 if (!$ENV{WEBKITAUTOTOOLS}) { 
     48if (useQmake()) { 
    4949    my $libDir = catdir(productDir(), 'lib'); 
    5050 
  • trunk/WebKitTools/Scripts/run-webkit-tests

    r29993 r30789  
    267267 
    268268if (isGtk()) { 
    269     if ($ENV{WEBKITAUTOTOOLS}) { 
     269    if (useQmake()) { 
     270        $productDir .= "/WebKitTools/DumpRenderTree/gtk"; 
     271    } else { 
    270272        $productDir .= "/Programs"; 
    271     } else { 
    272         $productDir .= "/WebKitTools/DumpRenderTree/gtk"; 
    273273    } 
    274274} 
  • trunk/WebKitTools/Scripts/webkitdirs.pm

    r30583 r30789  
    391391 
    392392    if (isGtk() and $path =~ /WebCore/) { 
    393         $path .= "/../lib/libWebKitGtk.so" if !$ENV{WEBKITAUTOTOOLS}; 
    394         $path .= "/../.libs/libWebKitGtk.so" if $ENV{WEBKITAUTOTOOLS}; 
     393        if (useQmake()) { 
     394            $path .= "/../lib/libWebKitGtk.so"; 
     395        } else { 
     396            $path .= "/../.libs/webkit-1.0.so"; 
     397        } 
    395398    } 
    396399 
     
    465468     
    466469    $isQt = defined($ENV{'QTDIR'}); 
     470} 
     471 
     472sub useQmake() 
     473{ 
     474    return 1 if isQt(); 
     475    return 0 if !defined($ENV{WEBKIT_BUILD_SYSTEM}); 
     476    return $ENV{WEBKIT_BUILD_SYSTEM} eq "qmake"; 
    467477} 
    468478 
     
    853863    } 
    854864 
    855     if ($ENV{WEBKITAUTOTOOLS}) { 
    856         return buildAutotoolsProject($clean, @buildArgs); 
    857     } else { 
     865    if (useQmake()) { 
    858866        my @buildArgs = ("CONFIG+=gtk-port", "CONFIG-=qt"); 
    859867        return buildQMakeProject($clean, @buildArgs); 
     868    } else { 
     869        return buildAutotoolsProject($clean, @buildArgs); 
    860870    } 
    861871}