meson: fix use of deprecated meson api meson.has_exe_wrapper()
authorTim-Philipp Müller <tim@centricular.com>
Mon, 18 Oct 2021 15:51:37 +0000 (16:51 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 20 Oct 2021 11:20:44 +0000 (11:20 +0000)
Use meson.can_run_host_binaries() instead.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1183>

meson.build

index f7f373a..bbabf5f 100644 (file)
@@ -389,7 +389,7 @@ devenv_cmd = [setenv, '--builddir=@0@'.format(meson.project_build_root()),
               '--srcdir=@0@'.format(meson.project_source_root())]
 
 subdir('tests')
-if meson.has_exe_wrapper() and build_machine.system() == 'linux' and host_machine.system() == 'windows'
+if meson.can_run_host_binaries() and build_machine.system() == 'linux' and host_machine.system() == 'windows'
   # FIXME: Ideally we could get the wrapper directly from meson
   devenv_cmd += ['--wine', host_machine.cpu_family() == 'x86_64' ? 'wine64' : 'wine32']
   sysroot = meson.get_cross_property('sys_root')