2024-09-19 14:19:46 +00:00
|
|
|
# shellcheck shell=bash
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
gnConfigurePhase() {
|
|
|
|
runHook preConfigure
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
local flagsArray=()
|
|
|
|
concatTo flagsArray gnFlags gnFlagsArray
|
|
|
|
|
|
|
|
echoCmd 'gn flags' "${flagsArray[@]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
gn gen out/Release --args="${flagsArray[*]}"
|
|
|
|
# shellcheck disable=SC2164
|
2020-04-24 23:36:52 +00:00
|
|
|
cd out/Release/
|
|
|
|
|
|
|
|
runHook postConfigure
|
|
|
|
}
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
if [ -z "${dontUseGnConfigure-}" ] && [ -z "${configurePhase-}" ]; then
|
2020-04-24 23:36:52 +00:00
|
|
|
configurePhase=gnConfigurePhase
|
|
|
|
fi
|