2017-12-18 21:09:53 +00:00
|
|
|
ladspa_sources = [
|
|
|
|
'gstladspa.c',
|
|
|
|
'gstladspafilter.c',
|
|
|
|
'gstladspasource.c',
|
|
|
|
'gstladspasink.c',
|
|
|
|
'gstladspautils.c',
|
|
|
|
]
|
|
|
|
|
2018-03-05 16:43:26 +00:00
|
|
|
ladspa_cargs = []
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
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'))
|
2018-03-05 16:43:26 +00:00
|
|
|
if lrdf_dep.found()
|
|
|
|
ladspa_cargs = ['-DHAVE_LRDF']
|
|
|
|
endif
|
|
|
|
|
2018-07-27 13:29:23 +00:00
|
|
|
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
|
2018-03-05 16:43:26 +00:00
|
|
|
gstladspa = library('gstladspa',
|
2017-12-18 21:09:53 +00:00
|
|
|
ladspa_sources,
|
2018-03-05 16:43:26 +00:00
|
|
|
c_args : gst_plugins_bad_args + ladspa_cargs,
|
2017-12-18 21:09:53 +00:00
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
2018-07-27 13:29:23 +00:00
|
|
|
dependencies : [gstaudio_dep, gstbase_dep, gmodule_dep, lrdf_dep, libm],
|
2017-12-18 21:09:53 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstladspa]
|
2017-12-18 21:09:53 +00:00
|
|
|
endif
|