mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-15 04:46:32 +00:00
ea6d602cca
If the ladspa plugin is enabled explicitly or via auto-features, the liblrdf dependency can not be disabled. As the RDF parsing currently provides hardly any features, the possibility to disable it fairly useful. Fixes: #3168 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5794>
36 lines
878 B
Meson
36 lines
878 B
Meson
ladspa_sources = [
|
|
'gstladspa.c',
|
|
'gstladspafilter.c',
|
|
'gstladspasource.c',
|
|
'gstladspasink.c',
|
|
'gstladspautils.c',
|
|
]
|
|
|
|
ladspa_cargs = []
|
|
|
|
if get_option('ladspa').disabled()
|
|
subdir_done()
|
|
endif
|
|
|
|
have_ladspa_h = cc.has_header('ladspa.h')
|
|
if not have_ladspa_h and get_option('ladspa').enabled()
|
|
error('ladspa plugin is enabled but ladspa.h not found')
|
|
endif
|
|
|
|
if have_ladspa_h
|
|
lrdf_dep = dependency('lrdf', required : get_option('ladspa-rdf'))
|
|
if lrdf_dep.found()
|
|
ladspa_cargs = ['-DHAVE_LRDF']
|
|
endif
|
|
|
|
gstladspa = library('gstladspa',
|
|
ladspa_sources,
|
|
c_args : gst_plugins_bad_args + ladspa_cargs,
|
|
link_args : noseh_link_args,
|
|
include_directories : [configinc, libsinc],
|
|
dependencies : [gstaudio_dep, gstbase_dep, gmodule_dep, lrdf_dep, libm],
|
|
install : true,
|
|
install_dir : plugins_install_dir,
|
|
)
|
|
plugins += [gstladspa]
|
|
endif
|