meson: override gtk4 dependency

This allows applications that depends on gtk4 to build it as subproject
without hardcoding 'gtk_dep' variable name in their build definition.
This commit is contained in:
Xavier Claessens 2021-03-08 21:06:33 -05:00
parent cba8c40aa0
commit 405dc7f557

View File

@ -778,6 +778,7 @@ foreach pkg: pkgs
subdirs: ['gtk-@0@'.format(gtk_api_version)],
extra_cflags: gdk_extra_cflags + gsk_extra_cflags + gtk_extra_cflags,
)
meson.override_dependency(pkg, libgtk_dep)
endforeach
if os_unix