Changeset 142692 in webkit


Ignore:
Timestamp:
Feb 12, 2013 5:00:15 PM (11 years ago)
Author:
bfulgham@webkit.org
Message:

Update WebKitDirs.pm for new Windows paths
https://bugs.webkit.org/show_bug.cgi?id=107714

Reviewed by Daniel Bates.

  • Scripts/webkitdirs.pm: For each existing Windows environment

variable, also include creation of the 'new' variables. The
'old' variables will be removed in a future update.
(windowsSourceSourceDir): New helper routine to return the
actual 'Source' folder of the WebKit source tree.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r142684 r142692  
     12013-02-11  Brent Fulgham  <bfulgham@webkit.org>
     2
     3        Update WebKitDirs.pm for new Windows paths
     4        https://bugs.webkit.org/show_bug.cgi?id=107714
     5
     6        Reviewed by Daniel Bates.
     7
     8        * Scripts/webkitdirs.pm: For each existing Windows environment
     9        variable, also include creation of the 'new' variables. The
     10        'old' variables will be removed in a future update.
     11        (windowsSourceSourceDir): New helper routine to return the
     12        actual 'Source' folder of the WebKit source tree.
     13
    1142013-02-12  Alec Flett  <alecflett@chromium.org>
    215
  • trunk/Tools/Scripts/webkitdirs.pm

    r142479 r142692  
    188188
    189189    my $setSharedPrecompsDir;
    190     $baseProductDir = $ENV{"WEBKITOUTPUTDIR"};
     190    $baseProductDir = $ENV{"WEBKITOUTPUTDIR"}; # FIXME: Switch to WEBKIT_OUTPUTDIR as part of https://bugs.webkit.org/show_bug.cgi?id=109472
    191191
    192192    if (!defined($baseProductDir) and isAppleMacWebKit()) {
     
    261261        chomp $dosBuildPath;
    262262        $ENV{"WEBKITOUTPUTDIR"} = $dosBuildPath;
     263        $ENV{"WEBKIT_OUTPUTDIR"} = $dosBuildPath;
    263264        my $unixBuildPath = `cygpath --unix \"$baseProductDir\"`;
    264265        chomp $unixBuildPath;
     
    16441645}
    16451646
     1647sub windowsSourceSourceDir()
     1648{
     1649    return windowsSourceDir() . "\\Source";
     1650}
     1651
    16461652sub windowsLibrariesDir()
    16471653{
     
    16741680        # Those environment variables must be set to be able to build inside Visual Studio.
    16751681        $variablesToSet{WEBKITLIBRARIESDIR} = windowsLibrariesDir() unless $ENV{WEBKITLIBRARIESDIR};
     1682        $variablesToSet{WEBKIT_LIBRARIES} = windowsLibrariesDir() unless $ENV{WEBKIT_LIBRARIES};
    16761683        $variablesToSet{WEBKITOUTPUTDIR} = windowsOutputDir() unless $ENV{WEBKITOUTPUTDIR};
     1684        $variablesToSet{WEBKIT_OUTPUTDIR} = windowsOutputDir() unless $ENV{WEBKIT_OUTPUTDIR};
     1685        $variablesToSet{WEBKIT_SOURCE} = windowsSourceSourceDir() unless $ENV{WEBKIT_SOURCE};
    16771686
    16781687        foreach my $variable (keys %variablesToSet) {
    16791688            print "Setting the Environment Variable '" . $variable . "' to '" . $variablesToSet{$variable} . "'\n\n";
    16801689            system qw(regtool -s set), '\\HKEY_CURRENT_USER\\Environment\\' . $variable, $variablesToSet{$variable};
    1681             $restartNeeded ||= $variable eq "WEBKITLIBRARIESDIR" || $variable eq "WEBKITOUTPUTDIR";
     1690            $restartNeeded ||= $variable eq "WEBKITLIBRARIESDIR" || $variable eq "WEBKITOUTPUTDIR" || $variable eq "WEBKIT_LIBRARIES" || $variable eq "WEBKIT_OUTPUTDIR" || $variable eq "WEBKIT_SOURCE";
    16821691        }
    16831692
     
    16871696    } else {
    16881697        if (!$ENV{'WEBKITLIBRARIESDIR'}) {
     1698            # VS2005 version.  This will be removed as part of https://bugs.webkit.org/show_bug.cgi?id=109472.
    16891699            print "Warning: You must set the 'WebKitLibrariesDir' environment variable\n";
    1690             print "         to be able build WebKit from within Visual Studio.\n";
     1700            print "         to be able build WebKit from within Visual Studio 2005.\n";
    16911701            print "         Make sure that 'WebKitLibrariesDir' points to the\n";
    16921702            print "         'WebKitLibraries/win' directory, not the 'WebKitLibraries/' directory.\n\n";
    16931703        }
     1704        if (!$ENV{'WEBKIT_LIBRARIES'}) {
     1705            # VS2010 (and newer) version. This will replace the VS2005 version as part of
     1706            # https://bugs.webkit.org/show_bug.cgi?id=109472.
     1707            print "Warning: You must set the 'WebKit_Libraries' environment variable\n";
     1708            print "         to be able build WebKit from within Visual Studio 2010 and newer.\n";
     1709            print "         Make sure that 'WebKit_Libraries' points to the\n";
     1710            print "         'WebKitLibraries/win' directory, not the 'WebKitLibraries/' directory.\n\n";
     1711        }
    16941712        if (!$ENV{'WEBKITOUTPUTDIR'}) {
     1713            # VS2005 version.  This will be removed as part of https://bugs.webkit.org/show_bug.cgi?id=109472.
    16951714            print "Warning: You must set the 'WebKitOutputDir' environment variable\n";
    1696             print "         to be able build WebKit from within Visual Studio.\n\n";
     1715            print "         to be able build WebKit from within Visual Studio 2005.\n\n";
     1716        }
     1717        if (!$ENV{'WEBKIT_OUTPUTDIR'}) {
     1718            # VS2010 (and newer) version. This will replace the VS2005 version as part of
     1719            # https://bugs.webkit.org/show_bug.cgi?id=109472.
     1720            print "Warning: You must set the 'WebKit_OutputDir' environment variable\n";
     1721            print "         to be able build WebKit from within Visual Studio 2010 and newer.\n\n";
     1722        }
     1723        if (!$ENV{'WEBKIT_SOURCE'}) {
     1724            print "Warning: You must set the 'WebKit_Source' environment variable\n";
     1725            print "         to be able build WebKit from within Visual Studio 2010 and newer.\n\n";
    16971726        }
    16981727    }
     
    17461775        chomp($ENV{WEBKITLIBRARIESDIR} = `cygpath -wa '$ENV{WEBKITLIBRARIESDIR}'`) if isCygwin();
    17471776    }
     1777    unless ($ENV{WEBKIT_LIBRARIES}) {
     1778        $ENV{'WEBKIT_LIBRARIES'} = File::Spec->catdir($sourceDir, "WebKitLibraries", "win");
     1779        chomp($ENV{WEBKIT_LIBRARIES} = `cygpath -wa '$ENV{WEBKIT_LIBRARIES}'`) if isCygwin();
     1780    }
    17481781
    17491782    print "Building results into: ", baseProductDir(), "\n";
    17501783    print "WEBKITOUTPUTDIR is set to: ", $ENV{"WEBKITOUTPUTDIR"}, "\n";
     1784    print "WEBKIT_OUTPUTDIR is set to: ", $ENV{"WEBKIT_OUTPUTDIR"}, "\n";
    17511785    print "WEBKITLIBRARIESDIR is set to: ", $ENV{"WEBKITLIBRARIESDIR"}, "\n";
     1786    print "WEBKIT_LIBRARIES is set to: ", $ENV{"WEBKIT_LIBRARIES"}, "\n";
    17521787}
    17531788
Note: See TracChangeset for help on using the changeset viewer.