meson: Maintain macOS ABI through dylib versioning
[platform/upstream/gstreamer.git] / gst-libs / gst / wayland / meson.build
1 wl_req = '>= 1.4'
2 wl_client_dep = dependency('wayland-client', version: wl_req, required: get_option('wayland'))
3 libdrm_dep = dependency('libdrm', version: '>= 2.4.55', required: get_option('wayland'))
4 wl_protocol_dep = dependency('wayland-protocols', version: wl_req, required: get_option('wayland'))
5 wl_scanner = find_program('wayland-scanner', required: get_option('wayland'))
6 # Also used in ext/wayland
7 use_wayland = wl_protocol_dep.found() and wl_client_dep.found() and wl_scanner.found() and libdrm_dep.found()
8
9 if use_wayland
10   gstwayland = library('gstwayland-' + api_version,
11     'wayland.c',
12     c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
13     include_directories : [configinc, libsinc],
14     version : libversion,
15     soversion : soversion,
16   darwin_versions : osxversion,
17     install : true,
18     dependencies : [gst_dep, gstvideo_dep]
19   )
20
21   gstwayland_dep = declare_dependency(link_with : gstwayland,
22     include_directories : [libsinc],
23     dependencies : [gst_dep, gstvideo_dep])
24 endif