2017-06-23 17:33:24 +00:00
|
|
|
# sidplay plugin works with libsidplay 1.36.x (not 2.x.x)
|
|
|
|
have_sidplay = false
|
2018-07-27 13:59:01 +00:00
|
|
|
if have_cxx and not get_option('sidplay').disabled()
|
2017-06-23 17:33:24 +00:00
|
|
|
if cxx.has_header('sidplay/player.h')
|
|
|
|
sid_code = '''#include <sidplay/player.h>
|
|
|
|
void somefunc (void) {
|
|
|
|
sidTune tune = sidTune(0);
|
|
|
|
}'''
|
2018-07-27 13:59:01 +00:00
|
|
|
sidplay_dep = cxx.find_library('sidplay', required: get_option('sidplay'))
|
2017-06-23 17:33:24 +00:00
|
|
|
if sidplay_dep.found()
|
|
|
|
have_sidplay = cxx.compiles(sid_code, dependencies: sidplay_dep, name : 'sidplay')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
if have_sidplay
|
|
|
|
shared_module('gstsid', 'gstsiddec.cc',
|
2018-07-27 13:59:01 +00:00
|
|
|
cpp_args : ugly_args,
|
2017-06-23 17:33:24 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep, sidplay_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
2018-07-27 13:59:01 +00:00
|
|
|
elif get_option('sidplay').enabled()
|
|
|
|
error('sidplay plugin enabled but dependencies not found')
|
2017-06-23 17:33:24 +00:00
|
|
|
endif
|