mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
e778c5594f
Like we do for other plugins, and also install a .pc file if we build the plugin statically.
26 lines
960 B
Meson
26 lines
960 B
Meson
# sidplay plugin works with libsidplay 1.36.x (not 2.x.x)
|
|
have_sidplay = false
|
|
if have_cxx and not get_option('sidplay').disabled()
|
|
if cxx.has_header('sidplay/player.h')
|
|
sid_code = '''#include <sidplay/player.h>
|
|
void somefunc (void) {
|
|
sidTune tune = sidTune(0);
|
|
}'''
|
|
sidplay_dep = cxx.find_library('sidplay', required: get_option('sidplay'))
|
|
if sidplay_dep.found()
|
|
have_sidplay = cxx.compiles(sid_code, dependencies: sidplay_dep, name : 'sidplay')
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
if have_sidplay
|
|
gstsid = library('gstsid', 'gstsiddec.cc',
|
|
cpp_args : ugly_args,
|
|
include_directories : [configinc],
|
|
dependencies : [gstaudio_dep, sidplay_dep],
|
|
install : true,
|
|
install_dir : plugins_install_dir)
|
|
pkgconfig.generate(gstsid, install_dir : plugins_pkgconfig_install_dir)
|
|
elif get_option('sidplay').enabled()
|
|
error('sidplay plugin enabled but dependencies not found')
|
|
endif
|