summary refs log tree commit diff
path: root/pkgs/development/tools/xcbuild/setup-hook.sh
blob: f4b5abf2d8d388c6874c441710d910dfdd61e187 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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