mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
0534ceac81
Not every package that needs xcbuild will want to use its build phase. I have moved the xcbuild setup hook to the new attribute xcbuildHook. This means that dontUseXcbuild is no longer needed. If you just need to call xcbuild on its own you can just refer to xcbuild.
30 lines
503 B
Bash
30 lines
503 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
|