2 if not gstgl_dep.found()
3 if get_option('wpe').enabled()
4 error('wpe plugin enabled but GL support was not detected')
9 wpe_dep = dependency('wpe-webkit-1.0', version : '>= 2.28', required : get_option('wpe'))
10 wpe_fdo_dep = dependency('wpebackend-fdo-1.0', version : '>= 1.8', required : get_option('wpe'))
11 egl_dep = dependency('egl', required : get_option('wpe'))
12 xkbcommon_dep = dependency('xkbcommon', version : '>= 0.8', required : get_option('wpe'))
13 wl_server_dep = dependency('wayland-server', required : get_option('wpe'))
15 if not wpe_dep.found() or not wpe_fdo_dep.found() or not egl_dep.found() or not xkbcommon_dep.found()
19 giounix_dep = dependency('gio-unix-2.0', required: false)
20 gstwpe = library('gstwpe',
21 ['WPEThreadedView.cpp', 'gstwpe.cpp', 'gstwpevideosrc.cpp', 'gstwpesrcbin.cpp'],
22 dependencies : [egl_dep, wpe_dep, wpe_fdo_dep, gstallocators_dep, gstaudio_dep, gstvideo_dep, gstbase_dep, gstgl_dep, xkbcommon_dep, wl_server_dep, giounix_dep],
23 cpp_args : gst_plugins_bad_args + ['-DHAVE_CONFIG_H=1'],
24 include_directories : [configinc],
26 install_dir : plugins_install_dir)
28 if giounix_dep.found()
29 subdir('wpe-extension')
31 pkgconfig.generate(gstwpe, install_dir : plugins_pkgconfig_install_dir)