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() {
|
||||
runHook preConfigure
|
||||
xcbuildBuildPhase() {
|
||||
export DSTROOT=$out
|
||||
|
||||
runHook preBuild
|
||||
|
||||
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
|
||||
configurePhase=xcbuildPhase
|
||||
xcbuildInstallPhase () {
|
||||
runHook preInstall
|
||||
|
||||
# not implemented
|
||||
# xcodebuild install
|
||||
|
||||
runHook postInstall
|
||||
}
|
||||
|
||||
if [ -z "$dontUseXcbuild" ]; then
|
||||
buildPhase=xcbuildBuildPhase
|
||||
installPhase=xcbuildInstallPhase
|
||||
fi
|
||||
|
||||
# if [ -d "*.xcodeproj" ]; then
|
||||
|
|
Loading…
Reference in a new issue