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"
|
|
|
|
|
2016-11-12 22:51:25 +01:00
|
|
|
xcodebuild OTHER_CFLAGS="$NIX_CFLAGS_COMPILE" OTHER_CPLUSPLUSFLAGS="$NIX_CFLAGS_COMPILE" OTHER_LDFLAGS="$NIX_LDFLAGS" 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
|
|
|
}
|
|
|
|
|
2016-11-08 02:57:42 +01:00
|
|
|
if [ -z "$dontUseXcbuild" ]; then
|
|
|
|
buildPhase=xcbuildBuildPhase
|
2016-11-08 04:55:31 +01:00
|
|
|
if [ -z "$installPhase" ]; then
|
|
|
|
installPhase=xcbuildInstallPhase
|
|
|
|
fi
|
2016-06-26 06:45:55 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# if [ -d "*.xcodeproj" ]; then
|
|
|
|
# buildPhase=xcbuildPhase
|
|
|
|
# fi
|