2016-11-15 20:46:17 +00:00
|
|
|
wl_sources = [
|
|
|
|
'gstwaylandsink.c',
|
|
|
|
'wlshmallocator.c',
|
|
|
|
'wlbuffer.c',
|
|
|
|
'wldisplay.c',
|
|
|
|
'wlwindow.c',
|
|
|
|
'wlvideoformat.c',
|
|
|
|
'wllinuxdmabuf.c'
|
|
|
|
]
|
|
|
|
|
2019-08-14 10:24:19 +00:00
|
|
|
libdrm_dep = dependency('libdrm', version: '>= 2.4.55', required:get_option('wayland'))
|
|
|
|
|
2016-11-15 20:46:17 +00:00
|
|
|
if use_wayland
|
2021-10-17 23:40:14 +00:00
|
|
|
protocols_datadir = wl_protocol_dep.get_variable('pkgdatadir')
|
2016-11-15 20:46:17 +00:00
|
|
|
|
|
|
|
protocol_defs = [
|
|
|
|
['/stable/viewporter/viewporter.xml', 'viewporter-protocol.c', 'viewporter-client-protocol.h'],
|
|
|
|
['/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml',
|
2018-07-10 01:20:59 +00:00
|
|
|
'linux-dmabuf-unstable-v1-protocol.c', 'linux-dmabuf-unstable-v1-client-protocol.h'],
|
|
|
|
['/unstable/fullscreen-shell/fullscreen-shell-unstable-v1.xml',
|
2019-03-01 08:56:24 +00:00
|
|
|
'fullscreen-shell-unstable-v1-protocol.c', 'fullscreen-shell-unstable-v1-client-protocol.h'],
|
|
|
|
['/stable/xdg-shell/xdg-shell.xml', 'xdg-shell-protocol.c', 'xdg-shell-client-protocol.h'],
|
2016-11-15 20:46:17 +00:00
|
|
|
]
|
|
|
|
protocols_files = []
|
|
|
|
|
|
|
|
foreach protodef: protocol_defs
|
|
|
|
xmlfile = protocols_datadir + protodef.get(0)
|
|
|
|
|
|
|
|
protocols_files += [custom_target(protodef.get(1),
|
|
|
|
output : protodef.get(1),
|
|
|
|
input : xmlfile,
|
|
|
|
command : [wl_scanner, 'code', '@INPUT@', '@OUTPUT@'])]
|
|
|
|
|
|
|
|
protocols_files += [custom_target(protodef.get(2),
|
|
|
|
output : protodef.get(2),
|
|
|
|
input : xmlfile,
|
|
|
|
command : [wl_scanner, 'client-header', '@INPUT@', '@OUTPUT@'])]
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
gstwaylandsink = library('gstwaylandsink',
|
|
|
|
wl_sources + protocols_files,
|
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gst_dep, gstvideo_dep, gstwayland_dep, gstallocators_dep,
|
|
|
|
wl_client_dep, wl_protocol_dep, libdrm_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-04-24 18:05:30 +00:00
|
|
|
pkgconfig.generate(gstwaylandsink, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstwaylandsink]
|
2016-11-15 20:46:17 +00:00
|
|
|
endif
|