forked from mirrors/nixpkgs
xcbuild: Add install phase
This phase is disabled for now but we can use it later.
This commit is contained in:
parent
f1897116d0
commit
78c3acc2ee
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue