nixpkgs-suyu/pkgs/development/tools/xcbuild/setup-hook.sh
2016-11-15 18:58:10 -06:00

31 lines
557 B
Bash

xcbuildBuildPhase() {
export DSTROOT=$out
runHook preBuild
echo "running xcodebuild"
xcodebuild OTHER_CFLAGS="$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
if [ -z "$installPhase" ]; then
installPhase=xcbuildInstallPhase
fi
fi
# if [ -d "*.xcodeproj" ]; then
# buildPhase=xcbuildPhase
# fi