diff options
author | Simon McVittie <smcv@collabora.com> | 2022-06-28 12:50:06 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-07-13 20:36:13 +0100 |
commit | 6a4835e6270e276c1f52d68012f471752ebef0fb (patch) | |
tree | b7f27a4c6b7bc22b206fca9490fa6466d5919b96 /meson.build | |
parent | 17e12ccfb08debec5b88b7c2bfafbe02daf0e569 (diff) | |
download | dbus-6a4835e6270e276c1f52d68012f471752ebef0fb.tar.gz |
meson: Define HAVE_GIO_UNIX
Some of the tests check for this.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build index d7aeb61f..f9d25bba 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' |