Changeset 79846 in webkit


Ignore:
Timestamp:
Feb 28, 2011 2:04:21 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-02-28 Kristian Amlie <kristian.amlie@nokia.com>

Reviewed by Andreas Kling.

Made sure that the build-webkit --qmake argument is always respected.

Previously, it would be respected during the build, but not during
the early feature detection. The build would also fail if qmake was
not in your path, even if you specified --qmake with a valid qmake
binary.

[Qt] WebKit patches required to work with a modularized version of Qt
https://bugs.webkit.org/show_bug.cgi?id=53916

  • Scripts/build-webkit:
  • Scripts/webkitdirs.pm:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r79841 r79846  
     12011-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
    1182011-02-27  Ojan Vafai  <ojan@chromium.org>
    219
  • trunk/Tools/Scripts/build-webkit

    r79096 r79846  
    287287# Update defaults from Qt's project file
    288288if (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    }
    289296    my %qtDefaults = qtFeatureDefaults();
    290297    foreach (@features) {
  • trunk/Tools/Scripts/webkitdirs.pm

    r79610 r79846  
    6161my $osXVersion;
    6262my $isQt;
     63my $qmakebin = "qmake"; # Allow override of the qmake binary from $PATH
    6364my $isSymbian;
    6465my %qtFeatureDefaults;
     
    106107    }
    107108    return $thisPerl;
     109}
     110
     111sub setQmakeBinaryPath($)
     112{
     113    ($qmakebin) = @_;
    108114}
    109115
     
    589595            }
    590596
    591             my $mkspec = `qmake -query QMAKE_MKSPECS`;
     597            my $mkspec = `$qmakebin -query QMAKE_MKSPECS`;
    592598            $mkspec =~ s/[\n|\r]$//g;
    593599            my $qtMajorVersion = retrieveQMakespecVar("$mkspec/qconfig.pri", "QT_MAJOR_VERSION");
     
    683689{
    684690    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);
    686692    my $originalCwd = getcwd();
    687693    chdir File::Spec->catfile(sourceDir(), "Source", "WebCore");
    688     my $defaults = `qmake CONFIG+=compute_defaults 2>&1`;
     694    my $defaults = `$qmakebin CONFIG+=compute_defaults 2>&1`;
    689695    chdir $originalCwd;
    690696
     
    15631569    my @buildArgs = ("-r");
    15641570
    1565     my $qmakebin = "qmake"; # Allow override of the qmake binary from $PATH
    15661571    my $makeargs = "";
    15671572    my $installHeaders;
     
    18371842        $env->{PATH} = join(':', productDir(), dirname(installedSafariPath()), appleApplicationSupportPath(), $env->{PATH} || "");
    18381843    } elsif (isQt()) {
    1839         my $qtLibs = `qmake -query QT_INSTALL_LIBS`;
     1844        my $qtLibs = `$qmakebin -query QT_INSTALL_LIBS`;
    18401845        $qtLibs =~ s/[\n|\r]$//g;
    18411846        $env->{PATH} = join(';', $qtLibs, productDir() . "/lib", $env->{PATH} || "");
Note: See TracChangeset for help on using the changeset viewer.