mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
meson: find_program('gdbus-codegen') directly
gio.pc variable is a bit bogus in context of cross-compilation, since it contains an absolute path, relative to the sysroot directory. On Fedora, it ends up as: /usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/usr/bin/gdbus-codegen path which does not exist because it is not shipped by Fedora mingw packages. Instead, we can rely on meson find_program() behaviour to do a better job based on its search order and capabilities. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-ID: <20241008125028.1177932-14-marcandre.lureau@redhat.com>
This commit is contained in:
parent
ec818df000
commit
c118c8eb3e
1 changed files with 1 additions and 1 deletions
|
@ -1036,7 +1036,7 @@ if not get_option('gio').auto() or have_system
|
||||||
gio = not_found
|
gio = not_found
|
||||||
endif
|
endif
|
||||||
if gio.found()
|
if gio.found()
|
||||||
gdbus_codegen = find_program(gio.get_variable('gdbus_codegen'),
|
gdbus_codegen = find_program('gdbus-codegen',
|
||||||
required: get_option('gio'))
|
required: get_option('gio'))
|
||||||
gio_unix = dependency('gio-unix-2.0', required: get_option('gio'),
|
gio_unix = dependency('gio-unix-2.0', required: get_option('gio'),
|
||||||
method: 'pkg-config')
|
method: 'pkg-config')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue