3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/xcbuild/setup-hook.sh

32 lines
600 B
Bash
Raw Normal View History

xcbuildBuildPhase() {
export DSTROOT=$out
runHook preBuild
echo "running xcodebuild"
xcodebuild OTHER_CFLAGS="$NIX_CFLAGS_COMPILE" OTHER_CPLUSPLUSFLAGS="$NIX_CFLAGS_COMPILE" OTHER_LDFLAGS="$NIX_LDFLAGS" build
runHook postBuild
}
xcbuildInstallPhase () {
runHook preInstall
# not implemented
# xcodebuild install
runHook postInstall
}
if [ -z "$dontUseXcbuild" ]; then
buildPhase=xcbuildBuildPhase
2016-11-08 03:55:31 +00:00
if [ -z "$installPhase" ]; then
installPhase=xcbuildInstallPhase
fi
fi
# if [ -d "*.xcodeproj" ]; then
# buildPhase=xcbuildPhase
# fi