+2006-06-24 Bjoern Graf <bjoern.graf@gmail.com>
+
+ Reviewed by Maciej.
+
+ - http://bugzilla.opendarwin.org/show_bug.cgi?id=7802
+ devenv.com not available in VC++ Express installations
+
+ * Scripts/webkitdirs.pm: Make Windows build work with Visual C++ Express.
+
2006-06-24 Alexey Proskuryakov <ap@nypop.com>
Reviewed by Darin.
# Variables for Win32 support
-my $devenvPath;
+my $vcbuildPath;
my $windowsTmpPath;
sub determineSourceDir
sub setupCygwinEnv()
{
return if !isCygwin();
- return if $devenvPath;
+ return if $vcbuildPath;
- my $programFilesPath = `cygpath "$ENV{'PROGRAMFILES'}"`;
- chomp $programFilesPath;
- $devenvPath = "$programFilesPath/Microsoft Visual Studio 8/Common7/IDE/devenv.com";
+ my $vcInstallDir = $ENV{'VCINSTALLDIR'} or die 'Run "<Program Files>\Microsoft Visual Studio 8\VC\bin\vcvars32.bat" to set VC variables';
+ $vcInstallDir = `cygpath "$vcInstallDir"`;
+ chomp $vcInstallDir;
+ $vcbuildPath = "$vcInstallDir/vcpackages/vcbuild.exe";
$windowsTmpPath = `cygpath -w /tmp`;
chomp $windowsTmpPath;
print "Building results into: ", baseProductDir(), "\n";
chdir "$project.vcproj" or die "Failed to cd into $project.vcproj\n";
my $config = configuration();
- print "$devenvPath $project.sln /build $config";
- my $result = system $devenvPath, "$project.sln", "/build", $config;
+ print "$vcbuildPath $project.sln /u /time \"$config|Win32\"\n";
+ my $result = system $vcbuildPath, "$project.sln", "/u", "/time", "$config|Win32";
chdir ".." or die;
return $result;
}