depot/third_party/nixpkgs/pkgs/development/tools/xcbuild/setup-hook.sh
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

32 lines
595 B
Bash

xcbuildBuildPhase() {
export DSTROOT=$out
runHook preBuild
local flagsArray=()
concatTo flagsArray xcbuildFlags
echoCmd 'running xcodebuild' "${flagsArray[@]}"
xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates "${flagsArray[@]}" 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