2016-11-08 02:57:42 +01:00
|
|
|
xcbuildBuildPhase() {
|
|
|
|
export DSTROOT=$out
|
|
|
|
|
|
|
|
runHook preBuild
|
2016-06-26 06:45:55 +02:00
|
|
|
|
|
|
|
echo "running xcodebuild"
|
|
|
|
|
2018-04-08 07:24:50 +02:00
|
|
|
xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates $xcbuildFlags build
|
2016-11-08 02:57:42 +01:00
|
|
|
|
|
|
|
runHook postBuild
|
|
|
|
}
|
|
|
|
|
|
|
|
xcbuildInstallPhase () {
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
# not implemented
|
|
|
|
# xcodebuild install
|
2016-06-26 06:45:55 +02:00
|
|
|
|
2016-11-08 02:57:42 +01:00
|
|
|
runHook postInstall
|
2016-06-26 06:45:55 +02:00
|
|
|
}
|
|
|
|
|
2018-07-07 00:53:50 +02:00
|
|
|
buildPhase=xcbuildBuildPhase
|
|
|
|
if [ -z "$installPhase" ]; then
|
|
|
|
installPhase=xcbuildInstallPhase
|
2016-06-26 06:45:55 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# if [ -d "*.xcodeproj" ]; then
|
|
|
|
# buildPhase=xcbuildPhase
|
|
|
|
# fi
|