mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
32 lines
556 B
Bash
32 lines
556 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
|
|
}
|
|
|
|
if [ -z "$dontUseXcbuild" ]; then
|
|
buildPhase=xcbuildBuildPhase
|
|
if [ -z "$installPhase" ]; then
|
|
installPhase=xcbuildInstallPhase
|
|
fi
|
|
fi
|
|
|
|
# if [ -d "*.xcodeproj" ]; then
|
|
# buildPhase=xcbuildPhase
|
|
# fi
|