From: Simon McVittie Date: Tue, 28 Jun 2022 11:50:06 +0000 (+0100) Subject: meson: Define HAVE_GIO_UNIX X-Git-Tag: dbus-1.15.0~32^2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a4835e6270e276c1f52d68012f471752ebef0fb;p=thirdparty%2Fdbus.git meson: Define HAVE_GIO_UNIX Some of the tests check for this. Signed-off-by: Simon McVittie --- diff --git a/meson.build b/meson.build index d7aeb61f9..f9d25bba7 100644 --- a/meson.build +++ b/meson.build @@ -295,8 +295,10 @@ glib = dependency( ) if platform_windows gio = dependency('gio-windows-2.0', required: glib.found()) + have_gio_unix = false else gio = dependency('gio-unix-2.0', required: glib.found()) + have_gio_unix = gio.found() endif use_glib = glib.found() and gio.found() config.set('DBUS_WITH_GLIB', use_glib) @@ -688,7 +690,7 @@ checks = get_option('checks') config.set('DBUS_ENABLE_CHECKS', checks ? 1 : false) config.set('DBUS_DISABLE_CHECKS', not checks ? 1 : false) config.set('G_DISABLE_CHECKS', not checks ? 1 : false) - +config.set('HAVE_GIO_UNIX', have_gio_unix ? 1 : false) dbus_static_flags = ( get_option('default_library') == 'static' ? '-DDBUS_STATIC_BUILD'