[gtk: 20/72] Generate introspection for GdkWayland API




commit 66ce0cbec0ef66e0c69103d74dd338f699981b83
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Oct 12 14:05:52 2020 +0100

    Generate introspection for GdkWayland API
    
    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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]