diff options
author | Steve Block <steveblock@google.com> | 2009-11-05 09:23:40 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-11-10 22:41:12 +0000 |
commit | cac0f67c402d107cdb10971b95719e2ff9c7c76b (patch) | |
tree | d182c7f87211c6f201a5f038e332336493ebdbe7 /WebKitTools/Scripts/webkitdirs.pm | |
parent | 4b2ef0f288e7c6c4602f621b7a0e9feed304b70e (diff) | |
download | external_webkit-cac0f67c402d107cdb10971b95719e2ff9c7c76b.zip external_webkit-cac0f67c402d107cdb10971b95719e2ff9c7c76b.tar.gz external_webkit-cac0f67c402d107cdb10971b95719e2ff9c7c76b.tar.bz2 |
Merge webkit.org at r50258 : Initial merge by git.
Change-Id: I1a9e1dc4ed654b69174ad52a4f031a07240f37b0
Diffstat (limited to 'WebKitTools/Scripts/webkitdirs.pm')
-rw-r--r-- | WebKitTools/Scripts/webkitdirs.pm | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/WebKitTools/Scripts/webkitdirs.pm b/WebKitTools/Scripts/webkitdirs.pm index d5177dd..16f9c26 100644 --- a/WebKitTools/Scripts/webkitdirs.pm +++ b/WebKitTools/Scripts/webkitdirs.pm @@ -117,7 +117,7 @@ sub determineBaseProductDir unlink($personalPlistFile) || die "Could not delete $personalPlistFile: $!"; } - open PRODUCT, "defaults read com.apple.Xcode PBXApplicationwideBuildSettings 2> /dev/null |" or die; + open PRODUCT, "defaults read com.apple.Xcode PBXApplicationwideBuildSettings 2> " . File::Spec->devnull() . " |" or die; $baseProductDir = join '', <PRODUCT>; close PRODUCT; @@ -125,7 +125,7 @@ sub determineBaseProductDir undef $baseProductDir unless $baseProductDir =~ /^\//; if (!defined($baseProductDir)) { - open PRODUCT, "defaults read com.apple.Xcode PBXProductDirectory 2> /dev/null |" or die; + open PRODUCT, "defaults read com.apple.Xcode PBXProductDirectory 2> " . File::Spec->devnull() . " |" or die; $baseProductDir = <PRODUCT>; close PRODUCT; if ($baseProductDir) { @@ -215,6 +215,14 @@ sub determineArchitecture } } +sub jscPath($) +{ + my ($productDir) = @_; + my $jscName = "jsc"; + $jscName .= "_debug" if (isCygwin() && ($configuration eq "Debug")); + return "$productDir/$jscName"; +} + sub argumentsForConfiguration() { determineConfiguration(); @@ -300,6 +308,16 @@ sub productDir return $configurationProductDir; } +sub jscProductDir +{ + my $productDir = productDir(); + $productDir .= "/JavaScriptCore" if isQt(); + $productDir .= "/$configuration" if (isQt() && isWindows()); + $productDir .= "/Programs" if isGtk(); + + return $productDir; +} + sub configuration() { determineConfiguration(); @@ -792,7 +810,7 @@ sub determineIsQt() } # The presence of QTDIR only means Qt if --gtk is not on the command-line - if (isGtk()) { + if (isGtk() || isWx()) { $isQt = 0; return; } @@ -1100,7 +1118,12 @@ sub buildVisualStudioProject $action = "/clean"; } - my @command = ($vcBuildPath, $winProjectPath, $action, $config); + my $useenv = "/useenv"; + if (isChromium()) { + $useenv = ""; + } + + my @command = ($vcBuildPath, $useenv, $winProjectPath, $action, $config); print join(" ", @command), "\n"; return system @command; |