depot/third_party/nixpkgs/pkgs/development/tools/misc/premake/setup-hook.sh

21 lines
425 B
Bash
Raw Normal View History

# shellcheck shell=bash
premakeConfigurePhase() {
runHook preConfigure
local flagsArray=(
${premakefile:+--file=$premakefile}
)
concatTo flagsArray premakeFlags premakeFlagsArray premakeBackend=gmake
echoCmd 'configure flags' "${flagsArray[@]}"
@premake_cmd@ "${flagsArray[@]}"
runHook postConfigure
}
if [ -z "${configurePhase-}" ]; then
configurePhase=premakeConfigurePhase
fi