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.
29 lines
503 B
Bash
29 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
|