• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1wl_req = '>= 1.15'
2wl_client_dep = dependency('wayland-client', version: wl_req, required: get_option('wayland'))
3libdrm_dep = dependency('libdrm', version: '>= 2.4.55', required: get_option('wayland'))
4wl_protocol_dep = dependency('wayland-protocols', version: wl_req, required: get_option('wayland'))
5wl_scanner = find_program('wayland-scanner', required: get_option('wayland'))
6# Also used in ext/wayland
7use_wayland = wl_protocol_dep.found() and wl_client_dep.found() and wl_scanner.found() and libdrm_dep.found()
8
9if use_wayland
10  gstwayland = library('gstwayland-' + api_version,
11    'wayland.c',
12    c_args : gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API', '-DBUILDING_GST_WAYLAND'],
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])
24endif
25