mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-07 18:14:35 +00:00
aa68d03013
Context creation and retrieval is required, the symbols are exported with the header missing. Users most likely define GST_USE_UNSTABLE_API so they're aware of the implications of using a header that might change between releases. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1688>
35 lines
1.4 KiB
Meson
35 lines
1.4 KiB
Meson
wl_req = '>= 1.15'
|
|
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
|
|
use_wayland = wl_protocol_dep.found() and wl_client_dep.found() and wl_scanner.found() and libdrm_dep.found()
|
|
|
|
if use_wayland
|
|
gstwayland = library('gstwayland-' + api_version,
|
|
'wayland.c',
|
|
c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_WAYLAND'],
|
|
include_directories : [configinc, libsinc],
|
|
version : libversion,
|
|
soversion : soversion,
|
|
darwin_versions : osxversion,
|
|
install : true,
|
|
dependencies : [gst_dep, gstvideo_dep, wl_client_dep]
|
|
)
|
|
|
|
pkgconfig.generate(gstwayland,
|
|
libraries : [gst_dep, gstvideo_dep],
|
|
variables : pkgconfig_variables,
|
|
subdirs : pkgconfig_subdirs,
|
|
name : 'gstreamer-wayland-1.0',
|
|
description : 'GStreamer Wayland support',
|
|
)
|
|
|
|
gstwayland_dep = declare_dependency(link_with : gstwayland,
|
|
include_directories : [libsinc],
|
|
dependencies : [gst_dep, gstvideo_dep])
|
|
|
|
meson.override_dependency('gstreamer-wayland-1.0', gstwayland_dep)
|
|
install_headers('wayland.h', subdir: 'gstreamer-1.0/gst/wayland')
|
|
endif
|