2016-08-12 15:51:45 +00:00
|
|
|
webp_sources = [
|
|
|
|
'gstwebp.c',
|
|
|
|
'gstwebpdec.c',
|
|
|
|
'gstwebpenc.c',
|
|
|
|
]
|
|
|
|
|
2025-01-13 17:10:31 +00:00
|
|
|
webp_headers = [
|
|
|
|
'gstwebpdec.h',
|
|
|
|
'gstwebpenc.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
doc_sources = []
|
|
|
|
foreach s: webp_sources + webp_headers
|
|
|
|
doc_sources += meson.current_source_dir() / s
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
plugin_sources += {
|
|
|
|
'webp': pathsep.join(doc_sources)
|
|
|
|
}
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
webp_dep = dependency('libwebp', version : '>= 0.2.1', required : get_option('webp'))
|
2020-10-22 22:15:32 +00:00
|
|
|
webpmux_dep = dependency('libwebpmux', version : '>= 0.2.1', required : get_option('webp'))
|
2016-08-12 15:51:45 +00:00
|
|
|
|
2020-10-22 22:15:32 +00:00
|
|
|
if webp_dep.found() and webpmux_dep.found()
|
2016-08-12 15:51:45 +00:00
|
|
|
gstwebp = library('gstwebp',
|
|
|
|
webp_sources,
|
|
|
|
c_args : gst_plugins_bad_args,
|
|
|
|
include_directories : [configinc],
|
2020-10-22 22:15:32 +00:00
|
|
|
dependencies : [gstvideo_dep, webp_dep, webpmux_dep],
|
2016-08-12 15:51:45 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-10-22 09:30:45 +00:00
|
|
|
plugins += [gstwebp]
|
2016-08-12 15:51:45 +00:00
|
|
|
endif
|