Changeset 142692 in webkit
- Timestamp:
- Feb 12, 2013 5:00:15 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r142684 r142692 1 2013-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 1 14 2013-02-12 Alec Flett <alecflett@chromium.org> 2 15 -
trunk/Tools/Scripts/webkitdirs.pm
r142479 r142692 188 188 189 189 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 191 191 192 192 if (!defined($baseProductDir) and isAppleMacWebKit()) { … … 261 261 chomp $dosBuildPath; 262 262 $ENV{"WEBKITOUTPUTDIR"} = $dosBuildPath; 263 $ENV{"WEBKIT_OUTPUTDIR"} = $dosBuildPath; 263 264 my $unixBuildPath = `cygpath --unix \"$baseProductDir\"`; 264 265 chomp $unixBuildPath; … … 1644 1645 } 1645 1646 1647 sub windowsSourceSourceDir() 1648 { 1649 return windowsSourceDir() . "\\Source"; 1650 } 1651 1646 1652 sub windowsLibrariesDir() 1647 1653 { … … 1674 1680 # Those environment variables must be set to be able to build inside Visual Studio. 1675 1681 $variablesToSet{WEBKITLIBRARIESDIR} = windowsLibrariesDir() unless $ENV{WEBKITLIBRARIESDIR}; 1682 $variablesToSet{WEBKIT_LIBRARIES} = windowsLibrariesDir() unless $ENV{WEBKIT_LIBRARIES}; 1676 1683 $variablesToSet{WEBKITOUTPUTDIR} = windowsOutputDir() unless $ENV{WEBKITOUTPUTDIR}; 1684 $variablesToSet{WEBKIT_OUTPUTDIR} = windowsOutputDir() unless $ENV{WEBKIT_OUTPUTDIR}; 1685 $variablesToSet{WEBKIT_SOURCE} = windowsSourceSourceDir() unless $ENV{WEBKIT_SOURCE}; 1677 1686 1678 1687 foreach my $variable (keys %variablesToSet) { 1679 1688 print "Setting the Environment Variable '" . $variable . "' to '" . $variablesToSet{$variable} . "'\n\n"; 1680 1689 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"; 1682 1691 } 1683 1692 … … 1687 1696 } else { 1688 1697 if (!$ENV{'WEBKITLIBRARIESDIR'}) { 1698 # VS2005 version. This will be removed as part of https://bugs.webkit.org/show_bug.cgi?id=109472. 1689 1699 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"; 1691 1701 print " Make sure that 'WebKitLibrariesDir' points to the\n"; 1692 1702 print " 'WebKitLibraries/win' directory, not the 'WebKitLibraries/' directory.\n\n"; 1693 1703 } 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 } 1694 1712 if (!$ENV{'WEBKITOUTPUTDIR'}) { 1713 # VS2005 version. This will be removed as part of https://bugs.webkit.org/show_bug.cgi?id=109472. 1695 1714 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"; 1697 1726 } 1698 1727 } … … 1746 1775 chomp($ENV{WEBKITLIBRARIESDIR} = `cygpath -wa '$ENV{WEBKITLIBRARIESDIR}'`) if isCygwin(); 1747 1776 } 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 } 1748 1781 1749 1782 print "Building results into: ", baseProductDir(), "\n"; 1750 1783 print "WEBKITOUTPUTDIR is set to: ", $ENV{"WEBKITOUTPUTDIR"}, "\n"; 1784 print "WEBKIT_OUTPUTDIR is set to: ", $ENV{"WEBKIT_OUTPUTDIR"}, "\n"; 1751 1785 print "WEBKITLIBRARIESDIR is set to: ", $ENV{"WEBKITLIBRARIESDIR"}, "\n"; 1786 print "WEBKIT_LIBRARIES is set to: ", $ENV{"WEBKIT_LIBRARIES"}, "\n"; 1752 1787 } 1753 1788
Note: See TracChangeset
for help on using the changeset viewer.