2017-06-23 17:33:24 +00:00
|
|
|
# sidplay plugin works with libsidplay 1.36.x (not 2.x.x)
|
|
|
|
have_sidplay = false
|
|
|
|
if add_languages('cpp')
|
2018-01-30 20:34:52 +00:00
|
|
|
extra_args = []
|
2017-06-23 17:33:24 +00:00
|
|
|
cxx = meson.get_compiler('cpp')
|
2017-08-10 14:48:27 +00:00
|
|
|
if cxx.has_argument('-fvisibility=hidden')
|
2018-01-30 20:34:52 +00:00
|
|
|
extra_args += ['-fvisibility=hidden']
|
|
|
|
endif
|
|
|
|
if cxx.has_argument('-fno-strict-aliasing')
|
|
|
|
extra_args += ['-fno-strict-aliasing']
|
2017-08-10 14:48:27 +00:00
|
|
|
endif
|
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);
|
|
|
|
}'''
|
2017-06-23 22:44:18 +00:00
|
|
|
sidplay_dep = cxx.find_library('sidplay', required: false)
|
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-01-30 20:34:52 +00:00
|
|
|
cpp_args : ugly_args + extra_args,
|
2017-06-23 17:33:24 +00:00
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstaudio_dep, sidplay_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir)
|
|
|
|
endif
|