Commit 07b48ef8 authored by eseidel's avatar eseidel
Browse files

2006-01-22 Eric Seidel <eseidel@apple.com>

        Reviewed by anders.

        Fix --no-svg option to use XCode flags instead of gcc flags.

        * Scripts/build-webkit:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12284 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 05aeca35
2006-01-22 Eric Seidel <eseidel@apple.com>
Reviewed by anders.
Fix --no-svg option to use XCode flags instead of gcc flags.
* Scripts/build-webkit:
2006-01-22 Eric Seidel <eseidel@apple.com>
Reviewed by anders.
......
......@@ -43,7 +43,8 @@ setConfiguration();
chdirWebKit();
my $productDir = productDir();
my @options = XcodeOptions();
push(@options, "-USVG_SUPPORT") if (!$svgSupport);
my $svgOptionsString = "";
$svgOptionsString = "GCC_PREPROCESSOR_DEFINITIONS=\$(DEBUG_DEFINES)" if (!$svgSupport);
# Check that all the project directories are there.
my @projects = ("JavaScriptCore", "JavaScriptGlue", "WebCore", "WebKit");
......@@ -77,12 +78,15 @@ removeLibraryDependingOnSVG("WebCore", $svgSupport);
# Build, and abort if the build fails.
for my $dir (@projects) {
chdir $dir or die;
my $result = system "xcodebuild", "-project", "$dir.xcodeproj", @options, @ARGV;
exit WEXITSTATUS($result) if WEXITSTATUS($result);
my $result = 0;
if ($dir eq "JavaScriptCore") {
$result = system "xcodebuild", "-project", "$dir.xcodeproj", "-target", "testkjs", @options, @ARGV;
exit WEXITSTATUS($result) if WEXITSTATUS($result);
$result = system "xcodebuild", "-project", "$dir.xcodeproj", "-target", "All", @options, @ARGV;
} elsif ($dir eq "WebCore") {
$result = system "xcodebuild", "-project", "$dir.xcodeproj", @options, @ARGV, $svgOptionsString;
} else {
$result = system "xcodebuild", "-project", "$dir.xcodeproj", @options, @ARGV;
}
exit WEXITSTATUS($result) if WEXITSTATUS($result);
chdir ".." or die;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment