Switched Darwin/macOS dependency resolution to require gtk-mac-integration directly, and removed the legacy gtkosxapplication fallback path in src/fe-gtk/meson.build.

Kept existing mac integration wiring behavior intact (HAVE_GTK_MAC still enabled when this dependency is present, now mandatory on Darwin).
This commit is contained in:
2026-02-18 14:53:16 -07:00
parent ff77f32033
commit f558c99c22

View File

@@ -89,15 +89,9 @@ elif host_machine.system() == 'darwin'
zoitechat_gtk_sources += 'notifications/notification-osx.m'
add_languages('objc')
gtk_mac_dep = dependency('gtk-mac-integration', required: false)
if not gtk_mac_dep.found()
gtk_mac_dep = dependency('gtkosxapplication', required: false)
endif
if gtk_mac_dep.found()
gtk_mac_dep = dependency('gtk-mac-integration', required: true)
zoitechat_gtk_deps += gtk_mac_dep
zoitechat_gtk_cflags += '-DHAVE_GTK_MAC'
endif
else
zoitechat_gtk_sources += 'notifications/notification-freedesktop.c'