Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
splitting up iOS build scripts for better job distribution across the…
… build server farm
- Loading branch information
1 parent
919683b
commit 8b9c8d7
Showing
12 changed files
with
129 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e # exit on error | ||
|
||
pushd $(dirname "${0}")/../../xcode > /dev/null | ||
|
||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme libmoai-ios-all -sdk iphoneos || exit 1 | ||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme moai-ios -sdk iphoneos || exit 1 | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -e # exit on error | ||
|
||
pushd $(dirname "${0}")/../../xcode > /dev/null | ||
|
||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme libmoai-ios-all -sdk iphonesimulator || exit 1 | ||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme moai-ios -sdk iphonesimulator || exit 1 | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------# | ||
# Copyright (c) 2010-2011 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#----------------------------------------------------------------# | ||
|
||
set -e # exit on error | ||
|
||
pushd $(dirname "${0}")/../../xcode > /dev/null | ||
|
||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme libmoai-ios-all -sdk iphoneos clean | ||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme moai-ios -sdk iphoneos clean | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------# | ||
# Copyright (c) 2010-2011 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#----------------------------------------------------------------# | ||
|
||
set -e # exit on error | ||
|
||
pushd $(dirname "${0}")/../../xcode > /dev/null | ||
|
||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme libmoai-ios-all -sdk iphonesimulator clean | ||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme moai-ios -sdk iphonesimulator clean | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------# | ||
# Copyright (c) 2010-2011 Zipline Games, Inc. | ||
# All Rights Reserved. | ||
# http://getmoai.com | ||
#----------------------------------------------------------------# | ||
|
||
set -e # exit on error | ||
|
||
./clean-ios-simulator.sh | ||
./clean-ios-device.sh | ||
|
||
pushd $(dirname "${0}")/../../xcode > /dev/null | ||
|
||
IOS_LIB=../lib/ios | ||
|
||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme moai-ios-static -sdk iphonesimulator clean | ||
xcodebuild -derivedDataPath build -configuration Release -workspace moai.xcworkspace -scheme moai-ios-static -sdk iphoneos clean | ||
|
||
rm -rf $IOS_LIB | ||
|
||
popd > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
---------------------------------------------------------------- | ||
-- Copyright (c) 2010-2011 Zipline Games, Inc. | ||
-- All Rights Reserved. | ||
-- http://getmoai.com | ||
---------------------------------------------------------------- | ||
|
||
local STATE_FILENAME = 'count.lua' | ||
local MARKED_FILENAME = 'marked.lua' | ||
local SAMPLES_DIRECTORY = MOAI_SDK_HOME .. '/samples/' | ||
|
||
MODE_BUILD = 'build' | ||
MODE_CLEAN = 'clean' | ||
|
||
gTargets = { | ||
[ 'ios' ] = { build = 'build-ios.sh', clean = 'clean-ios.sh' }, | ||
[ 'ios-device' ] = { build = 'build-ios-device.sh', clean = 'clean-ios-device.sh' }, | ||
[ 'ios-simulator' ] = { build = 'build-ios-simulator.sh', clean = 'clean-ios-simulator.sh' }, | ||
[ 'osx' ] = { build = 'build-osx.sh', clean = 'clean-osx.sh' }, | ||
} | ||
|
||
gMode = MODE_BUILD | ||
gTargetsToBuild = {} | ||
|
||
---------------------------------------------------------------- | ||
for i, escape, param, iter in util.iterateCommandLine ( arg or {}) do | ||
|
||
if escape == 'c' or escape == 'clean' then | ||
gMode = MODE_CLEAN | ||
end | ||
|
||
if param and gTargets [ param ] then | ||
table.insert ( gTargetsToBuild, param ) | ||
end | ||
end | ||
|
||
for i, target in ipairs ( gTargetsToBuild ) do | ||
|
||
local command = gTargets [ target ] | ||
command = command and command [ gMode ] | ||
|
||
util.moaiexec ( './%s', command ) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.