gplugin/gplugin

7027845d098d
Parents f9fd009d9ca4
Children
Make sure gtk4 was found before trying to build vala bindings against it

This error only showed up when gtk4 was enabled but not found.

Testing Done:
Built on haiku that doesn't have gtk without setting `-Dgtk4=false`.
Built on debian testing normally.

Reviewed at https://reviews.imfreedom.org/r/3069/
--- a/vala/meson.build Wed Mar 20 23:10:34 2024 -0500
+++ b/vala/meson.build Tue Apr 09 21:42:42 2024 -0500
@@ -13,7 +13,7 @@
install : true,
)
-if get_option('gtk4').allowed()
+if get_option('gtk4').allowed() and GTK4.found()
gnome.generate_vapi('gplugin-gtk4',
sources : gplugin_gtk4_gir[0],
packages : [ 'gtk4' ],