1xcbuildBuildPhase() {
2 export DSTROOT=$out
3
4 runHook preBuild
5
6 local flagsArray=()
7 concatTo flagsArray xcbuildFlags
8
9 echoCmd 'running xcodebuild' "${flagsArray[@]}"
10
11 xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates "${flagsArray[@]}" build
12
13 runHook postBuild
14}
15
16xcbuildInstallPhase () {
17 runHook preInstall
18
19 # not implemented
20 # xcodebuild install
21
22 runHook postInstall
23}
24
25buildPhase=xcbuildBuildPhase
26if [ -z "${installPhase-}" ]; then
27 installPhase=xcbuildInstallPhase
28fi
29
30# if [ -d "*.xcodeproj" ]; then
31# buildPhase=xcbuildPhase
32# fi