mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
e3d5849225
This is needed for cross-compiling without a build machine compiler available. The option was added in 0.54, but we only need this in Cerbero and it doesn't affect older versions so it should be ok. Will only cause a spurious warning. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1266>
18 lines
550 B
Meson
18 lines
550 B
Meson
if not add_languages('cpp', native: false, required: get_option('modplug'))
|
|
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)
|
|
plugins += [gstmodplug]
|
|
endif
|