From 66ce0cbec0ef66e0c69103d74dd338f699981b83 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 12 Oct 2020 14:05:52 +0100 Subject: [PATCH] Generate introspection for GdkWayland API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Like we do for GdkX11. We can't use all of the public C API, but we can expose enough type information to allow non-C developers to actually check if they are running the Wayland GDK backend or not—plus some additional Wayland-specific API. --- gtk/meson.build | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gtk/meson.build b/gtk/meson.build index e29f0d4fdd..006ac8f31e 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -1165,6 +1165,23 @@ if build_gir gtk_dep_sources += gdk_x11_gir endif + if wayland_enabled + gdk_wayland_gir = gnome.generate_gir(libgtk, + sources: gdk_wayland_public_headers + gdk_wayland_sources, + namespace: 'GdkWayland', + nsversion: gtk_api_version, + identifier_prefix: 'Gdk', + symbol_prefix: 'gdk', + export_packages: 'gtk4-wayland', + includes: [ gdk_gir[0], ], + install: true, + dependencies: gdk_gir_dep, + header: 'gdk/gdkwayland.h', + extra_args: gir_args, + ) + gtk_dep_sources += gdk_wayland_gir + endif + gsk_gir_inc = [ gdk_gir[0] ] gsk_gir = gnome.generate_gir(libgtk,