2020-05-11 23:30:36 +00:00
|
|
|
if not add_languages('cpp', native: false, required: get_option('modplug'))
|
2018-12-16 18:45:53 +00:00
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
modplug_dep = dependency('libmodplug', required: get_option('modplug'))
|
|
|
|
|
|
|
|
if modplug_dep.found()
|
|
|
|
gstmodplug = library('gstmodplug',
|
|
|
|
'gstmodplug.cc',
|
|
|
|
cpp_args: gst_plugins_bad_args,
|
|
|
|
include_directories: [configinc],
|
|
|
|
dependencies: [gstaudio_dep, modplug_dep, libm],
|
|
|
|
install: true,
|
|
|
|
install_dir: plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstmodplug, install_dir: plugins_pkgconfig_install_dir)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstmodplug]
|
2018-12-16 18:45:53 +00:00
|
|
|
endif
|