meson: support structuredAttrs in setup hook

Tested emilua with and without __structuredAttrs.
This commit is contained in:
Wolfgang Walther 2024-06-09 18:42:23 +02:00
parent 471cbdd062
commit 55933d9bf6
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1

View File

@ -50,7 +50,8 @@ mesonConfigurePhase() {
mesonCheckPhase() {
runHook preCheck
local flagsArray=($mesonCheckFlags "${mesonCheckFlagsArray[@]}")
local flagsArray=()
concatTo flagsArray mesonCheckFlags mesonCheckFlagsArray
echoCmd 'mesonCheckPhase flags' "${flagsArray[@]}"
meson test --no-rebuild --print-errorlogs "${flagsArray[@]}"
@ -64,12 +65,9 @@ mesonInstallPhase() {
local flagsArray=()
if [[ -n "$mesonInstallTags" ]]; then
flagsArray+=("--tags" "${mesonInstallTags// /,}")
flagsArray+=("--tags" "$(concatStringsSep "," mesonInstallTags)")
fi
flagsArray+=(
$mesonInstallFlags
"${mesonInstallFlagsArray[@]}"
)
concatTo flagsArray mesonInstallFlags mesonInstallFlagsArray
echoCmd 'mesonInstallPhase flags' "${flagsArray[@]}"
meson install --no-rebuild "${flagsArray[@]}"