mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
b7f4bda282
If these aren't defined, the stdenv defaults are used in the `*Phase` case, or no extra phases are done, in the `*Phases` case.
29 lines
506 B
Bash
29 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
|