mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
7e18fc1b1f
This is based on gtksink, but similar to waylandsink uses Wayland APIs directly instead of rendering with Gtk/Cairo primitives. Note that the long term plan is to move this into the existing extension in `-good`, which requires the Wayland library to move the as well. For this reason several files like `gstgtkutils.*` and `gtkgstbasewidget.*` are straight copies and should be kept in sync. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1515>
23 lines
756 B
Meson
23 lines
756 B
Meson
gtkwayland_sources = [
|
|
'gstplugin.c',
|
|
'gstgtkutils.c',
|
|
'gstgtkwaylandsink.c',
|
|
'gtkgstbasewidget.c',
|
|
'gtkgstwaylandwidget.c',
|
|
]
|
|
|
|
gtk_dep = dependency('gtk+-3.0', required : get_option('gtk3'))
|
|
gtk_wayland_dep = dependency('gtk+-wayland-3.0', required : get_option('gtk3'))
|
|
|
|
if gtk_dep.found() and gtk_wayland_dep.found() and use_wayland
|
|
gstgtkwayland = library('gstgtkwayland',
|
|
gtkwayland_sources,
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
include_directories : [configinc],
|
|
dependencies : [gtk_dep, gstvideo_dep, gstwayland_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
pkgconfig.generate(gstgtkwayland, install_dir : plugins_pkgconfig_install_dir)
|
|
plugins += [gstgtkwayland]
|
|
endif
|