summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers/gn/setup-hook.sh
blob: 75d2edcaf1c6a55ae662e7c86114a568a038db57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
gnConfigurePhase() {
    runHook preConfigure

    echo "gn flags: $gnFlags ${gnFlagsArray[@]}"

    gn gen out/Release --args="$gnFlags ${gnFlagsArray[@]}"
    cd out/Release/

    runHook postConfigure
}

if [ -z "$dontUseGnConfigure" -a -z "$configurePhase" ]; then
    configurePhase=gnConfigurePhase
fi