- fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3397
Build DumpRenderTree fails with unresolved NSAutoreleasePool, etc
* DumpRenderTree/DumpRenderTree.xcode/project.pbxproj: Change type from "folder" to "wrapper.framework"
for Foundation.framework. How was it ever wrong?
- finally, I tested making the default build directory work; it works now
* Scripts/webkitdirs.pm: Changed structure of the code a little bit, added symrootXcodeOptions function
that sets SYMROOT on the command line in case there's no product directory set in Xcode preferences.
* Scripts/build-webkit: Pass symrootXcodeOptions when invoking Xcode.
* Scripts/build-dumprendertree: Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9348
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-06-09 Darin Adler <darin@apple.com>
+
+ Reviewed by Maciej.
+
+ - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3397
+ Build DumpRenderTree fails with unresolved NSAutoreleasePool, etc
+
+ * DumpRenderTree/DumpRenderTree.xcode/project.pbxproj: Change type from "folder" to "wrapper.framework"
+ for Foundation.framework. How was it ever wrong?
+
+ - finally, I tested making the default build directory work; it works now
+
+ * Scripts/webkitdirs.pm: Changed structure of the code a little bit, added symrootXcodeOptions function
+ that sets SYMROOT on the command line in case there's no product directory set in Xcode preferences.
+ * Scripts/build-webkit: Pass symrootXcodeOptions when invoking Xcode.
+ * Scripts/build-dumprendertree: Ditto.
+
2005-06-09 Darin Adler <darin@apple.com>
* Scripts/webkitdirs.pm: Another try at making the default build directory of ~/WebKitBuild
sourceTree = "<group>";
};
08FB779EFE84155DC02AAC07 = {
+ explicitFileType = wrapper.framework;
isa = PBXFileReference;
- lastKnownFileType = folder;
name = Foundation.framework;
path = /System/Library/Frameworks/Foundation.framework;
refType = 0;
# Build
chdir "WebKitTools/DumpRenderTree" or die;
-exit system "xcodebuild", "-buildstyle", "Deployment";
+exit system "xcodebuild", symrootXcodeOptions(), "-buildstyle", "Deployment";
chdir $dir or die;
my $result;
if ($dir eq "JavaScriptCore") {
- $result = system "xcodebuild", "-target", "All", "-buildstyle", $style;
+ $result = system "xcodebuild", symrootXcodeOptions(), "-target", "All", "-buildstyle", $style;
} else {
- $result = system "xcodebuild", "-buildstyle", $style;
+ $result = system "xcodebuild", symrootXcodeOptions(), "-buildstyle", $style;
}
exit $result if $result;
chdir ".." or die;
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
$VERSION = 1.00;
@ISA = qw(Exporter);
- @EXPORT = qw(&chdirWebKit &productDir);
+ @EXPORT = qw(&chdirWebKit &productDir &symrootXcodeOptions);
%EXPORT_TAGS = ( );
@EXPORT_OK = ();
}
our @EXPORT_OK;
+my $productDir;
+my @options;
+
# Check that we're in the right directory.
sub chdirWebKit
{
# Check that an Xcode product directory is set, setting the SYMROOT environment variable
# as a side effect in case it's not so that we will effectively have a temporary Xcode
# product directory for xcodebuild commands called from the script.
-sub productDir
+sub findProductDir
{
+ return if defined $productDir;
open PRODUCT, "defaults read com.apple.Xcode PBXProductDirectory 2> /dev/null |" or die;
- my $productDir = <PRODUCT>;
- chomp $productDir;
+ $productDir = <PRODUCT>;
close PRODUCT;
- if (!$productDir) {
+ if ($productDir) {
+ chomp $productDir;
+ @options = ();
+ } else {
$productDir = "$ENV{HOME}/WebKitBuild";
- $ENV{SYMROOT} = $productDir;
+ @options = ("SYMROOT=$productDir");
}
$productDir =~ s|^~/|$ENV{HOME}/|;
+}
+
+# Get product directory.
+sub productDir
+{
+ findProductDir();
return $productDir;
}
+# Get SYMROOT options for Xcode.
+sub symrootXcodeOptions
+{
+ findProductDir();
+ return @options;
+}
+
1;