mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Updated Meson DBus dependency handling so macOS always forces DBus support off before resolving dbus-glib-1, preventing configure-time failure on Darwin hosts where dbus-glib is unavailable. This now applies regardless of whether the dbus option is auto or enabled.
Added a clear Meson warning when -Ddbus=enabled is requested on macOS, so users get explicit feedback that DBus is being disabled on that platform.
This commit is contained in:
@@ -19,7 +19,10 @@ libgmodule_dep = dependency('gmodule-2.0')
|
||||
libcanberra_dep = dependency('libcanberra', version: '>= 0.22',
|
||||
required: get_option('libcanberra'))
|
||||
dbus_required = get_option('dbus')
|
||||
if host_machine.system() == 'darwin' and dbus_required.auto()
|
||||
if host_machine.system() == 'darwin'
|
||||
if dbus_required.enabled()
|
||||
warning('dbus-glib is not available on macOS; disabling DBus support')
|
||||
endif
|
||||
dbus_required = false
|
||||
endif
|
||||
dbus_glib_dep = dependency('dbus-glib-1', required: dbus_required)
|
||||
|
||||
Reference in New Issue
Block a user