commit 59da01bbc31d2fec5d3fcc87fc87f467b36f9799
Author: David Robillard <d@drobilla.net>
AuthorDate: Fri May 12 07:34:56 2023 -0400
Commit: David Robillard <d@drobilla.net>
CommitDate: Fri May 12 07:34:56 2023 -0400
Only check for Gtk Quartz support on MacOS
diff --git a/meson.build b/meson.build
index 555527c..c490a5f 100644
--- a/meson.build
+++ b/meson.build
@@ -83,11 +83,15 @@ gtk2_x11_dep = dependency(
required: get_option('gtk2').enabled() and get_option('x11').enabled(),
)
-gtk2_quartz_dep = dependency(
- 'gtk+-quartz-2.0',
- include_type: 'system',
- required: get_option('gtk2').enabled() and get_option('cocoa').enabled(),
-)
+if host_machine.system() == 'darwin'
+ gtk2_quartz_dep = dependency(
+ 'gtk+-quartz-2.0',
+ include_type: 'system',
+ required: get_option('gtk2').enabled() and get_option('cocoa').enabled(),
+ )
+else
+ gtk2_quartz_dep = disabler()
+endif
gtk3_dep = dependency(
'gtk+-3.0',