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() { 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