depot/third_party/nixpkgs/pkgs/development/tools/build-managers/gn/setup-hook.sh
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

20 lines
427 B
Bash

# 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