forked from mirrors/nixpkgs
f5ce8f86df
This reverts commitfc23242220
, reversing changes made to754816b84b
. We don't have many binaries yet. Comment on the original merge commit.
40 lines
838 B
Bash
40 lines
838 B
Bash
mesonConfigurePhase() {
|
|
runHook preConfigure
|
|
|
|
if [ -z "$dontAddPrefix" ]; then
|
|
mesonFlags="--prefix=$prefix $mesonFlags"
|
|
fi
|
|
|
|
# Build release by default.
|
|
mesonFlags="--buildtype=${mesonBuildType:-release} $mesonFlags"
|
|
|
|
echo "meson flags: $mesonFlags ${mesonFlagsArray[@]}"
|
|
|
|
meson build $mesonFlags "${mesonFlagsArray[@]}"
|
|
cd build
|
|
|
|
if ! [[ -v enableParallelBuilding ]]; then
|
|
enableParallelBuilding=1
|
|
echo "meson: enabled parallel building"
|
|
fi
|
|
|
|
runHook postConfigure
|
|
}
|
|
|
|
if [ -z "$dontUseMesonConfigure" -a -z "$configurePhase" ]; then
|
|
setOutputFlags=
|
|
configurePhase=mesonConfigurePhase
|
|
fi
|
|
|
|
mesonCheckPhase() {
|
|
runHook preCheck
|
|
|
|
meson test
|
|
|
|
runHook postCheck
|
|
}
|
|
|
|
if [ -z "$dontUseMesonCheck" -a -z "$checkPhase" ]; then
|
|
checkPhase=mesonCheckPhase
|
|
fi
|