3
0
Fork 0
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:
Matthew Bauer 2016-11-07 19:57:42 -06:00
parent f1897116d0
commit 78c3acc2ee
No known key found for this signature in database
GPG key ID: E04D0AD9469141C3

View file

@ -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