edd34c50d9
With the previous preparations in place, it is time to take the plunge. As both the app and the portal use the same small library for handling external windows, port everything at once to avoid the hassle of building and installing two versions of the library. With the portal using GTK4 now, all extensions must port their preference widgets as well. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>
30 lines
648 B
Meson
30 lines
648 B
Meson
shew_public_headers = files(
|
|
'shew-external-window.h',
|
|
'shew-window-exporter.h',
|
|
)
|
|
|
|
shew_sources = [
|
|
'shew-external-window-wayland.c',
|
|
'shew-external-window-x11.c',
|
|
'shew-external-window.c',
|
|
'shew-window-exporter.c',
|
|
]
|
|
|
|
libshew = library(full_name,
|
|
sources: shew_sources,
|
|
dependencies: [gtk_dep, x11_dep],
|
|
install_dir: pkglibdir,
|
|
install: true,
|
|
)
|
|
|
|
libshew_gir = gnome.generate_gir(libshew,
|
|
sources: shew_sources + shew_public_headers,
|
|
nsversion: api_version,
|
|
namespace: 'Shew',
|
|
includes: ['Gdk-4.0', 'Gtk-4.0'],
|
|
extra_args: ['--quiet'],
|
|
install_dir_gir: girdir,
|
|
install_dir_typelib: typelibdir,
|
|
install: true,
|
|
)
|