Changeset 79846 in webkit
- Timestamp:
- Feb 28, 2011 2:04:21 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r79841 r79846 1 2011-02-28 Kristian Amlie <kristian.amlie@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 Made sure that the build-webkit --qmake argument is always respected. 6 7 Previously, it would be respected during the build, but not during 8 the early feature detection. The build would also fail if qmake was 9 not in your path, even if you specified --qmake with a valid qmake 10 binary. 11 12 [Qt] WebKit patches required to work with a modularized version of Qt 13 https://bugs.webkit.org/show_bug.cgi?id=53916 14 15 * Scripts/build-webkit: 16 * Scripts/webkitdirs.pm: 17 1 18 2011-02-27 Ojan Vafai <ojan@chromium.org> 2 19 -
trunk/Tools/Scripts/build-webkit
r79096 r79846 287 287 # Update defaults from Qt's project file 288 288 if (isQt()) { 289 # Take a sneek peek at the arguments, since we will need the qmake binary early 290 # on to do profile parsing. 291 foreach (@ARGV) { 292 if (/^--qmake=(.*)/) { 293 setQmakeBinaryPath($1); 294 } 295 } 289 296 my %qtDefaults = qtFeatureDefaults(); 290 297 foreach (@features) { -
trunk/Tools/Scripts/webkitdirs.pm
r79610 r79846 61 61 my $osXVersion; 62 62 my $isQt; 63 my $qmakebin = "qmake"; # Allow override of the qmake binary from $PATH 63 64 my $isSymbian; 64 65 my %qtFeatureDefaults; … … 106 107 } 107 108 return $thisPerl; 109 } 110 111 sub setQmakeBinaryPath($) 112 { 113 ($qmakebin) = @_; 108 114 } 109 115 … … 589 595 } 590 596 591 my $mkspec = ` qmake-query QMAKE_MKSPECS`;597 my $mkspec = `$qmakebin -query QMAKE_MKSPECS`; 592 598 $mkspec =~ s/[\n|\r]$//g; 593 599 my $qtMajorVersion = retrieveQMakespecVar("$mkspec/qconfig.pri", "QT_MAJOR_VERSION"); … … 683 689 { 684 690 return if %qtFeatureDefaults; 685 die "ERROR: qmake missing but required to build WebKit.\n" if not commandExists( "qmake");691 die "ERROR: qmake missing but required to build WebKit.\n" if not commandExists($qmakebin); 686 692 my $originalCwd = getcwd(); 687 693 chdir File::Spec->catfile(sourceDir(), "Source", "WebCore"); 688 my $defaults = ` qmakeCONFIG+=compute_defaults 2>&1`;694 my $defaults = `$qmakebin CONFIG+=compute_defaults 2>&1`; 689 695 chdir $originalCwd; 690 696 … … 1563 1569 my @buildArgs = ("-r"); 1564 1570 1565 my $qmakebin = "qmake"; # Allow override of the qmake binary from $PATH1566 1571 my $makeargs = ""; 1567 1572 my $installHeaders; … … 1837 1842 $env->{PATH} = join(':', productDir(), dirname(installedSafariPath()), appleApplicationSupportPath(), $env->{PATH} || ""); 1838 1843 } elsif (isQt()) { 1839 my $qtLibs = ` qmake-query QT_INSTALL_LIBS`;1844 my $qtLibs = `$qmakebin -query QT_INSTALL_LIBS`; 1840 1845 $qtLibs =~ s/[\n|\r]$//g; 1841 1846 $env->{PATH} = join(';', $qtLibs, productDir() . "/lib", $env->{PATH} || "");
Note: See TracChangeset
for help on using the changeset viewer.