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