2018-12-05 13:10:11 +00:00
|
|
|
|
|
|
|
if not gstgl_dep.found()
|
|
|
|
if get_option('wpe').enabled()
|
|
|
|
error('wpe plugin enabled but GL support was not detected')
|
|
|
|
endif
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-05-19 22:48:29 +00:00
|
|
|
wpe_dep = dependency('wpe-webkit-1.0', version : '>= 2.28', required : get_option('wpe'))
|
2021-05-22 17:05:18 +00:00
|
|
|
wpe_fdo_dep = dependency('wpebackend-fdo-1.0', version : '>= 1.8', required : get_option('wpe'))
|
2018-12-05 13:10:11 +00:00
|
|
|
egl_dep = dependency('egl', required : get_option('wpe'))
|
|
|
|
xkbcommon_dep = dependency('xkbcommon', version : '>= 0.8', required : get_option('wpe'))
|
2020-02-08 12:05:03 +00:00
|
|
|
wl_server_dep = dependency('wayland-server', required : get_option('wpe'))
|
2018-12-05 13:10:11 +00:00
|
|
|
|
|
|
|
if not wpe_dep.found() or not wpe_fdo_dep.found() or not egl_dep.found() or not xkbcommon_dep.found()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-04-20 00:46:46 +00:00
|
|
|
giounix_dep = dependency('gio-unix-2.0', required: false)
|
2018-12-05 13:10:11 +00:00
|
|
|
gstwpe = library('gstwpe',
|
2021-03-10 20:27:52 +00:00
|
|
|
['WPEThreadedView.cpp', 'gstwpe.cpp', 'gstwpevideosrc.cpp', 'gstwpesrcbin.cpp'],
|
2021-04-20 00:46:46 +00:00
|
|
|
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],
|
2018-12-05 13:10:11 +00:00
|
|
|
cpp_args : gst_plugins_bad_args + ['-DHAVE_CONFIG_H=1'],
|
|
|
|
include_directories : [configinc],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
2021-04-20 00:46:46 +00:00
|
|
|
|
|
|
|
if giounix_dep.found()
|
|
|
|
subdir('wpe-extension')
|
|
|
|
endif
|
2018-12-05 13:10:11 +00:00
|
|
|
pkgconfig.generate(gstwpe, install_dir : plugins_pkgconfig_install_dir)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstwpe]
|