Changeset 30789
- Timestamp:
- 03/04/08 22:54:54 (9 months ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 5 modified
-
ChangeLog (modified) (1 diff)
-
Scripts/build-webkit (modified) (2 diffs)
-
Scripts/run-launcher (modified) (1 diff)
-
Scripts/run-webkit-tests (modified) (1 diff)
-
Scripts/webkitdirs.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r30763 r30789 1 2008-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 1 14 2008-03-04 Sam Weinig <sam@webkit.org> 2 15 -
trunk/WebKitTools/Scripts/build-webkit
r30597 r30789 207 207 208 208 # enable autotool options accordingly 209 if ( $ENV{WEBKITAUTOTOOLS}) {209 if (isGtk() && !useQmake()) { 210 210 push @options, autotoolsFlag($crossDocumentMessagingSupport, "cross-document-messaging"); 211 211 push @options, autotoolsFlag($databaseSupport, "database"); … … 269 269 } 270 270 271 if (isGtk() && isDarwin() && !$ENV{WEBKITAUTOTOOLS}&& !$ENV{QMAKESPEC}) {271 if (isGtk() && isDarwin() && useQmake() && !$ENV{QMAKESPEC}) { 272 272 # The qmake from Trolltech's binary "QT for Mac" distribution tries to 273 273 # create xcode projects, not Makefiles -
trunk/WebKitTools/Scripts/run-launcher
r29993 r30789 46 46 47 47 # Set paths according to the build system used 48 if ( !$ENV{WEBKITAUTOTOOLS}) {48 if (useQmake()) { 49 49 my $libDir = catdir(productDir(), 'lib'); 50 50 -
trunk/WebKitTools/Scripts/run-webkit-tests
r29993 r30789 267 267 268 268 if (isGtk()) { 269 if ($ENV{WEBKITAUTOTOOLS}) { 269 if (useQmake()) { 270 $productDir .= "/WebKitTools/DumpRenderTree/gtk"; 271 } else { 270 272 $productDir .= "/Programs"; 271 } else {272 $productDir .= "/WebKitTools/DumpRenderTree/gtk";273 273 } 274 274 } -
trunk/WebKitTools/Scripts/webkitdirs.pm
r30583 r30789 391 391 392 392 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 } 395 398 } 396 399 … … 465 468 466 469 $isQt = defined($ENV{'QTDIR'}); 470 } 471 472 sub useQmake() 473 { 474 return 1 if isQt(); 475 return 0 if !defined($ENV{WEBKIT_BUILD_SYSTEM}); 476 return $ENV{WEBKIT_BUILD_SYSTEM} eq "qmake"; 467 477 } 468 478 … … 853 863 } 854 864 855 if ($ENV{WEBKITAUTOTOOLS}) { 856 return buildAutotoolsProject($clean, @buildArgs); 857 } else { 865 if (useQmake()) { 858 866 my @buildArgs = ("CONFIG+=gtk-port", "CONFIG-=qt"); 859 867 return buildQMakeProject($clean, @buildArgs); 868 } else { 869 return buildAutotoolsProject($clean, @buildArgs); 860 870 } 861 871 }