nixpkgs/pkgs/development/tools/xcbuild/setup-hook.sh
John Ericson b7f4bda282 treewide: *Phase(s)? variables are optional
If these aren't defined, the stdenv defaults are used in the `*Phase`
case, or no extra phases are done, in the `*Phases` case.
2019-11-01 14:44:44 -04:00

30 lines
506 B
Bash

xcbuildBuildPhase() {
export DSTROOT=$out
runHook preBuild
echo "running xcodebuild"
xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates $xcbuildFlags build
runHook postBuild
}
xcbuildInstallPhase () {
runHook preInstall
# not implemented
# xcodebuild install
runHook postInstall
}
buildPhase=xcbuildBuildPhase
if [ -z "${installPhase-}" ]; then
installPhase=xcbuildInstallPhase
fi
# if [ -d "*.xcodeproj" ]; then
# buildPhase=xcbuildPhase
# fi