159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
20 lines
427 B
Bash
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
|