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.
This commit is contained in:
Emmanuele Bassi 2020-10-12 14:05:52 +01:00
parent f83ee2ab6a
commit daac36ea4c

View File

@ -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,