2019-03-01 08:56:24 +00:00
|
|
|
wl_req = '>= 1.15'
|
2018-07-27 13:29:23 +00:00
|
|
|
wl_client_dep = dependency('wayland-client', version: wl_req, required: get_option('wayland'))
|
|
|
|
libdrm_dep = dependency('libdrm', version: '>= 2.4.55', required: get_option('wayland'))
|
|
|
|
wl_protocol_dep = dependency('wayland-protocols', version: wl_req, required: get_option('wayland'))
|
|
|
|
wl_scanner = find_program('wayland-scanner', required: get_option('wayland'))
|
|
|
|
# Also used in ext/wayland
|
2016-11-17 04:15:18 +00:00
|
|
|
use_wayland = wl_protocol_dep.found() and wl_client_dep.found() and wl_scanner.found() and libdrm_dep.found()
|
2016-11-15 20:46:17 +00:00
|
|
|
|
2016-11-17 04:15:18 +00:00
|
|
|
if use_wayland
|
|
|
|
gstwayland = library('gstwayland-' + api_version,
|
|
|
|
'wayland.c',
|
2018-09-24 10:52:22 +00:00
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_WAYLAND'],
|
2016-11-17 04:15:18 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:07:46 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-11-17 04:15:18 +00:00
|
|
|
install : true,
|
2020-02-27 13:54:13 +00:00
|
|
|
dependencies : [gst_dep, gstvideo_dep, wl_client_dep]
|
2016-11-17 04:15:18 +00:00
|
|
|
)
|
|
|
|
|
2018-04-07 20:33:47 +00:00
|
|
|
pkgconfig.generate(gstwayland,
|
|
|
|
libraries : [gst_dep, gstvideo_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
|
|
|
name : 'gstreamer-wayland-1.0',
|
|
|
|
description : 'GStreamer Wayland support',
|
|
|
|
)
|
|
|
|
|
2016-11-17 04:15:18 +00:00
|
|
|
gstwayland_dep = declare_dependency(link_with : gstwayland,
|
|
|
|
include_directories : [libsinc],
|
|
|
|
dependencies : [gst_dep, gstvideo_dep])
|
2018-04-07 20:33:47 +00:00
|
|
|
|
|
|
|
meson.override_dependency('gstreamer-wayland-1.0', gstwayland_dep)
|
2016-11-17 04:15:18 +00:00
|
|
|
endif
|