1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/tools/build-managers/gn/setup-hook.sh

15 lines
314 B
Bash
Raw Normal View History

2019-03-01 00:19:04 +00:00
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
2019-03-01 00:19:04 +00:00
configurePhase=gnConfigurePhase
fi