aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/build-managers/gn/setup-hook.sh
blob: 850f18948cad9b44ee539c96dbb1f5526e344428 (plain)
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