strip = '/usr/bin/i686-w64-mingw32-strip'
pkgconfig = '/usr/bin/i686-w64-mingw32-pkg-config'
windres = '/usr/bin/i686-w64-mingw32-windres'
-exe_wrapper = ['xvfb-run', '-a', 'wine']
ld = '/usr/bin/i686-w64-mingw32-ld'
cmake = '/usr/bin/cmake'
--- /dev/null
+# Copyright 2018-2020 Meson contributors
+# Copyright 2024 Collabora Ltd.
+# SPDX-License-Identifier: Apache-2.0
+
+[binaries]
+exe_wrapper = ['xvfb-run', '-a', 'wine']
strip = '/usr/bin/x86_64-w64-mingw32-strip'
pkgconfig = '/usr/bin/x86_64-w64-mingw32-pkg-config'
windres = '/usr/bin/x86_64-w64-mingw32-windres'
-exe_wrapper = ['xvfb-run', '-a', 'wine']
ld = '/usr/bin/x86_64-w64-mingw32-ld'
cmake = '/usr/bin/cmake'
export DBUS_TEST_MALLOC_FAILURES=0
meson_setup=
- cross_file=
+ cross_files=()
# openSUSE has convenience wrappers that run Meson with appropriate
# cross options
case "$ci_host" in
(*-w64-mingw32)
- cross_file="${srcdir}/maint/${ci_host}.txt"
+ cross_files=("${cross_files[@]}" "${srcdir}/maint/${ci_host}.txt")
+
+ if [ "$ci_test" = yes ]; then
+ cross_files=("${cross_files[@]}" "${srcdir}/maint/wine-exe-wrapper.txt")
+ fi
+
# openSUSE's wrappers are designed for building predictable
# RPM packages, so they set --auto-features=enabled -
# but that includes some things that make no sense on
if [ -z "$meson_setup" ] || ! command -v "$meson_setup" >/dev/null; then
meson_setup="meson setup"
- if [ -n "$cross_file" ]; then
+ for cross_file in "${cross_files[@]}"; do
set -- --cross-file="$cross_file" "$@"
- fi
+ done
fi
# We assume this when we set LD_LIBRARY_PATH for as-installed