mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
b7f4bda282
If these aren't defined, the stdenv defaults are used in the `*Phase` case, or no extra phases are done, in the `*Phases` case.
15 lines
314 B
Bash
15 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
|