mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
37 lines
899 B
Bash
37 lines
899 B
Bash
. @fix_qmake_libtool@
|
|
|
|
qmakeFlags=( ${qmakeFlags-} )
|
|
|
|
qmakePrePhase() {
|
|
qmakeFlags=( \
|
|
"PREFIX=$out" \
|
|
"NIX_OUTPUT_OUT=$out" \
|
|
"NIX_OUTPUT_DEV=${!outputDev}" \
|
|
"NIX_OUTPUT_BIN=${!outputBin}" \
|
|
"NIX_OUTPUT_DOC=${!outputDev}/${qtDocPrefix:?}" \
|
|
"NIX_OUTPUT_QML=${!outputBin}/${qtQmlPrefix:?}" \
|
|
"NIX_OUTPUT_PLUGIN=${!outputBin}/${qtPluginPrefix:?}" \
|
|
"${qmakeFlags[@]}" \
|
|
)
|
|
}
|
|
prePhases+=" qmakePrePhase"
|
|
|
|
qmakeConfigurePhase() {
|
|
runHook preConfigure
|
|
|
|
echo "QMAKEPATH=$QMAKEPATH"
|
|
echo qmake "${qmakeFlags[@]}"
|
|
qmake "${qmakeFlags[@]}"
|
|
|
|
if ! [[ -v enableParallelBuilding ]]; then
|
|
enableParallelBuilding=1
|
|
echo "qmake: enabled parallel building"
|
|
fi
|
|
|
|
runHook postConfigure
|
|
}
|
|
|
|
if [ -z "${dontUseQmakeConfigure-}" -a -z "${configurePhase-}" ]; then
|
|
configurePhase=qmakeConfigurePhase
|
|
fi
|