https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
14 lines
314 B
Bash
14 lines
314 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
|