mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
b55dfb5313
The only plugins remaining are those that haven't been ported to Meson yet, and msdk. Also, the tests are still automagic. https://bugzilla.gnome.org/show_bug.cgi?id=795107
37 lines
987 B
Meson
37 lines
987 B
Meson
ladspa_sources = [
|
|
'gstladspa.c',
|
|
'gstladspafilter.c',
|
|
'gstladspasource.c',
|
|
'gstladspasink.c',
|
|
'gstladspautils.c',
|
|
]
|
|
|
|
ladspa_cargs = []
|
|
|
|
if get_option('ladspa').disabled()
|
|
subdir_done()
|
|
endif
|
|
|
|
# This is an optional dep, but we make it optional only in auto mode
|
|
lrdf_dep = dependency('lrdf', required : get_option('ladspa'))
|
|
if lrdf_dep.found()
|
|
ladspa_cargs = ['-DHAVE_LRDF']
|
|
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
|
|
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,
|
|
)
|
|
pkgconfig.generate(gstladspa, install_dir : plugins_pkgconfig_install_dir)
|
|
endif
|