nixpkgs/pkgs/development/tools/xcbuild/setup-hook.sh

32 lines
556 B
Bash
Raw Normal View History

xcbuildBuildPhase() {
export DSTROOT=$out
runHook preBuild
echo "running xcodebuild"
2018-04-08 07:24:50 +02:00
xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates $xcbuildFlags build
runHook postBuild
}
xcbuildInstallPhase () {
runHook preInstall
# not implemented
# xcodebuild install
runHook postInstall
}
if [ -z "$dontUseXcbuild" ]; then
buildPhase=xcbuildBuildPhase
2016-11-08 04:55:31 +01:00
if [ -z "$installPhase" ]; then
installPhase=xcbuildInstallPhase
fi
fi
# if [ -d "*.xcodeproj" ]; then
# buildPhase=xcbuildPhase
# fi