2017-08-27 19:42:21 +02:00
|
|
|
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
|
|
|
|
|
2017-12-02 07:49:59 +01:00
|
|
|
if ! [[ -v enableParallelBuilding ]]; then
|
|
|
|
enableParallelBuilding=1
|
|
|
|
echo "meson: enabled parallel building"
|
|
|
|
fi
|
|
|
|
|
2017-08-27 19:42:21 +02:00
|
|
|
runHook postConfigure
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "$dontUseMesonConfigure" -a -z "$configurePhase" ]; then
|
|
|
|
setOutputFlags=
|
|
|
|
configurePhase=mesonConfigurePhase
|
|
|
|
fi
|