nixpkgs-suyu/pkgs/development/tools/build-managers/gn/setup-hook.sh
2019-04-11 00:25:12 -04:00

14 lines
308 B
Bash

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