meson: set multiple output dirs in setup hook

Closes: #32636
This commit is contained in:
Jan Tojnar 2018-03-05 07:08:18 +01:00
parent fe73013e7d
commit bfa24c12a5
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -10,6 +10,15 @@ mesonConfigurePhase() {
crossMesonFlags="--cross-file=@crossFile@/cross-file.conf"
fi
# See multiple-outputs.sh and mesons coredata.py
mesonFlags="\
--libdir=${!outputLib}/lib --libexecdir=${!outputLib}/libexec \
--bindir=${!outputBin}/bin --sbindir=${!outputBin}/sbin \
--includedir=${!outputInclude}/include \
--mandir=${!outputMan}/share/man --infodir=${!outputInfo}/share/info \
--localedir=${!outputLib}/share/locale \
$mesonFlags"
mesonFlags="${crossMesonFlags+$crossMesonFlags }--buildtype=${mesonBuildType:-release} $mesonFlags"
echo "meson flags: $mesonFlags ${mesonFlagsArray[@]}"