xcbuild: Add install phase

This phase is disabled for now but we can use it later.
This commit is contained in:
Matthew Bauer
2016-11-15 18:58:10 -06:00
parent f1897116d0
commit 78c3acc2ee
+18 -6
View File
@@ -1,15 +1,27 @@
xcbuildPhase() { xcbuildBuildPhase() {
runHook preConfigure export DSTROOT=$out
runHook preBuild
echo "running xcodebuild" echo "running xcodebuild"
xcodebuild xcodebuild OTHER_CFLAGS="$NIX_CFLAGS_COMPILE" OTHER_LDFLAGS="$NIX_LDFLAGS" build
runHook postConfigure runHook postBuild
} }
if [ -z "$dontUseXcbuild" -a -z "$configurePhase" ]; then xcbuildInstallPhase () {
configurePhase=xcbuildPhase runHook preInstall
# not implemented
# xcodebuild install
runHook postInstall
}
if [ -z "$dontUseXcbuild" ]; then
buildPhase=xcbuildBuildPhase
installPhase=xcbuildInstallPhase
fi fi
# if [ -d "*.xcodeproj" ]; then # if [ -d "*.xcodeproj" ]; then