mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
b7f4bda282
If these aren't defined, the stdenv defaults are used in the `*Phase` case, or no extra phases are done, in the `*Phases` case.
20 lines
403 B
Bash
20 lines
403 B
Bash
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
|