aboutsummaryrefslogtreecommitdiff
path: root/BuildScripts
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-06-15 00:01:47 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2010-06-15 00:01:47 +0000
commitef78677fe133a8ad4ef07deb37e84c27c24d5918 (patch)
tree47ada1fbe6cfbcb87689fe1691453484d1234949 /BuildScripts
parent0ad683cc4d69e6571975ca81a7ea3615358fcf1e (diff)
[Author: dmaclach]
Fix up the script so that we can build the iPhone target independent of the Mac target so that we can clean up the pulse config files to only build the one target without building multiple projects. DELTA=649 (626 added, 6 deleted, 17 changed) R=thomasvl
Diffstat (limited to 'BuildScripts')
-rwxr-xr-xBuildScripts/BuildAllSDKs.sh33
1 files changed, 23 insertions, 10 deletions
diff --git a/BuildScripts/BuildAllSDKs.sh b/BuildScripts/BuildAllSDKs.sh
index fe75165..81710b0 100755
--- a/BuildScripts/BuildAllSDKs.sh
+++ b/BuildScripts/BuildAllSDKs.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# BuildAllSDKs.sh
#
-# This script builds the Tiger, Leopard, SnowLeopard and iPhone versions of the
+# This script builds the Tiger, Leopard, SnowLeopard and iPhone versions of the
# requested target in the current basic config (debug, release, debug-gcov).
#
# Copyright 2006-2009 Google Inc.
@@ -39,15 +39,17 @@ fi
AVAILABLE_MACOS_SDKS=`eval ls ${DEVELOPER_SDK_DIR}`
AVAILABLE_PLATFORMS=`eval ls ${DEVELOPER_DIR}/Platforms`
-# build up our GTMiPhone parts
GTMIPHONE_OPEN_EXTRAS=""
GTMIPHONE_BUILD_EXTRAS=""
+GTM_OPEN_EXTRAS=""
+GTM_BUILD_EXTRAS=""
+
+# build up our GTMiPhone parts
if [ "${GTMIPHONE_PROJECT_TARGET}" != "" ]; then
AVAILABLE_IPHONE_SDKS=`eval ls ${DEVELOPER_DIR}/Platforms/iPhoneSimulator.platform/Developer/SDKs`
GTMIPHONE_OPEN_EXTRAS="
if \"${AVAILABLE_PLATFORMS}\" contains \"iPhoneSimulator.platform\" then
-- make sure both project files are open
- open posix file \"${SRCROOT}/GTM.xcodeproj\"
open posix file \"${SRCROOT}/GTMiPhone.xcodeproj\"
end if"
GTMIPHONE_BUILD_EXTRAS="
@@ -142,11 +144,13 @@ if [ "${GTMIPHONE_PROJECT_TARGET}" != "" ]; then
end if"
fi
-# build up our GTM AppleScript
-OUR_BUILD_SCRIPT="on run
- tell application \"Xcode\"
- activate
- ${GTMIPHONE_OPEN_EXTRAS}
+# build up our GTMiPhone parts
+if [ "${GTM_PROJECT_TARGET}" != "" ]; then
+ GTM_OPEN_EXTRAS="
+ if \"${AVAILABLE_PLATFORMS}\" contains \"MacOSX.platform\" then
+ open posix file \"${SRCROOT}/GTM.xcodeproj\"
+ end if"
+ GTM_BUILD_EXTRAS="
if \"${AVAILABLE_PLATFORMS}\" contains \"MacOSX.platform\" then
tell project \"GTM\"
-- wait for stub build to finish before kicking off the real builds.
@@ -187,8 +191,17 @@ OUR_BUILD_SCRIPT="on run
end if
end timeout
end tell
- end if
+ end if"
+fi
+
+# build up our GTM AppleScript
+OUR_BUILD_SCRIPT="on run
+ tell application \"Xcode\"
+ activate
+ ${GTMIPHONE_OPEN_EXTRAS}
+ ${GTM_OPEN_EXTRAS}
${GTMIPHONE_BUILD_EXTRAS}
+ ${GTM_BUILD_EXTRAS}
end tell
end run"
@@ -198,5 +211,5 @@ end run"
# open to invoke it, there by escaping our little sandbox.
# xcode defeats this: ( echo "${OUR_BUILD_SCRIPT}" | osascript - & )
rm -rf "${SCRIPT_APP}"
-echo "${OUR_BUILD_SCRIPT}" | osacompile -o "${SCRIPT_APP}" -x
+echo "${OUR_BUILD_SCRIPT}" | osacompile -o "${SCRIPT_APP}" -x
open "${SCRIPT_APP}"