[darwinbuild-changes] [143] trunk/darwinbuild/installXcodebuild

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 01:51:32 PDT 2006


Revision: 143
          http://trac.macosforge.org/projects/darwinbuild/changeset/143
Author:   ssen
Date:     2006-10-04 01:51:32 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
Install Xcode compiler specifications. We autogenerate
the 3.5 specification based on the 4.0 one, using sed.
This is necessary to build projects like CommonCrypto
and keymgr, which are native targets that are configured
to build with 3.5

Modified Paths:
--------------
    trunk/darwinbuild/installXcodebuild

Modified: trunk/darwinbuild/installXcodebuild
===================================================================
--- trunk/darwinbuild/installXcodebuild	2005-08-03 04:49:26 UTC (rev 142)
+++ trunk/darwinbuild/installXcodebuild	2006-10-04 08:51:32 UTC (rev 143)
@@ -72,9 +72,11 @@
 	/Developer/Private/jam \
 	/Developer/Tools \
 	/usr/bin/xcodebuild \
+    	/Library/Application\ Support/Xcode \
 	; do
 	echo -n "$SRC ... "
-	DST="$BUILDROOT$(dirname $SRC)"
+	DST="$BUILDROOT$SRC"
+	DST=$(dirname "$DST")
 	[ -d "$DST" ] || mkdir -p "$DST"
 	if [ ! -e "$BUILDROOT$SRC" ]; then
 		echo copying
@@ -84,6 +86,21 @@
 	fi
 done
 
+if [ ! -e "$BUILDROOT/Library/Application Support/Xcode/Specifications/GCC 3.5.xcspec" ];
+then
+    echo "Generating GCC 3.5.xcspec"
+    sed \
+	-e 's/4\.0/3.5/g' \
+	-e 's/4_0/3_5/g' \
+	-e '/DashIFlagAcceptsHeadermaps/d' \
+	-e 's/SupportsHeadermaps = Yes/SupportsHeadermaps = No/' \
+	-e '/USE_HEADERMAP/,/}/  s/DefaultValue = YES/DefaultValue = NO/' \
+	-e '/USE_HEADER_SYMLINKS/,/}/  s/DefaultValue = NO/DefaultValue = YES/' \
+	< "$BUILDROOT/Library/Application Support/Xcode/Specifications/GCC 4.0.xcspec" \
+	> "$BUILDROOT/Library/Application Support/Xcode/Specifications/GCC 3.5.xcspec"
+    
+fi
+
 ###
 ### Copy the full CF over the CF-Lite that may be in the build root.
 ### Retain the i386 CF-Lite that may be in the build root.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/da0988e7/attachment.html


More information about the darwinbuild-changes mailing list