depot/third_party/nixpkgs/pkgs/development/tools/build-managers/gn/setup-hook.sh

21 lines
427 B
Bash
Raw Normal View History

# shellcheck shell=bash
gnConfigurePhase() {
runHook preConfigure
local flagsArray=()
concatTo flagsArray gnFlags gnFlagsArray
echoCmd 'gn flags' "${flagsArray[@]}"
gn gen out/Release --args="${flagsArray[*]}"
# shellcheck disable=SC2164
cd out/Release/
runHook postConfigure
}
if [ -z "${dontUseGnConfigure-}" ] && [ -z "${configurePhase-}" ]; then
configurePhase=gnConfigurePhase
fi