premake: add setup-hook
Adds a configure phase for packages using premake. premakeConfigurePhase runs the correct premake version for the premake you are using (see premake_cmd).
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
premakeConfigurePhase() {
|
||||
runHook preConfigure
|
||||
|
||||
local flagsArray=(
|
||||
${premakefile:+--file=$premakefile}
|
||||
$premakeFlags ${premakeFlagsArray[@]}
|
||||
${premakeBackend:-gmake}
|
||||
)
|
||||
|
||||
echoCmd 'configure flags' "${flagsArray[@]}"
|
||||
|
||||
@premake_cmd@ "${flagsArray[@]}"
|
||||
|
||||
runHook postConfigure
|
||||
}
|
||||
|
||||
if [ -z "$configurePhase" ]; then
|
||||
configurePhase=premakeConfigurePhase
|
||||
fi
|
||||
Reference in New Issue
Block a user