2016-11-17 04:15:18 +00:00
|
|
|
wl_req = '>= 1.4'
|
|
|
|
wl_client_dep = dependency('wayland-client', version: wl_req, required: false)
|
|
|
|
libdrm_dep = dependency('libdrm', version: '>= 2.4.55', required: false)
|
|
|
|
wl_protocol_dep = dependency('wayland-protocols', version: wl_req,
|
|
|
|
required: false)
|
2016-11-17 18:54:45 +00:00
|
|
|
wl_scanner = find_program('wayland-scanner', required: false)
|
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',
|
|
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
install : true,
|
|
|
|
dependencies : [gst_dep, gstvideo_dep]
|
|
|
|
)
|
|
|
|
|
|
|
|
gstwayland_dep = declare_dependency(link_with : gstwayland,
|
|
|
|
include_directories : [libsinc],
|
|
|
|
dependencies : [gst_dep, gstvideo_dep])
|
|
|
|
endif
|