diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-06-23 18:33:24 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-06-23 18:34:14 +0100 |
commit | 27b77f93b5ea6b891ac2b4648dd8202cb6e089d1 (patch) | |
tree | 9ae3bb1ebc7dc7dfcc5d944f98121fae74a4ca19 /ext/sidplay | |
parent | c15a00537fd11cd71b7dc4bbd4e39c47be1129a8 (diff) |
meson: build sid plugin
https://bugzilla.gnome.org/show_bug.cgi?id=784135
Diffstat (limited to 'ext/sidplay')
-rw-r--r-- | ext/sidplay/meson.build | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/sidplay/meson.build b/ext/sidplay/meson.build new file mode 100644 index 00000000..ebc2a2a2 --- /dev/null +++ b/ext/sidplay/meson.build @@ -0,0 +1,25 @@ +# sidplay plugin works with libsidplay 1.36.x (not 2.x.x) +have_sidplay = false +if add_languages('cpp') + cxx = meson.get_compiler('cpp') + + 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') + 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', + cpp_args : ugly_args, + include_directories : [configinc], + dependencies : [gstaudio_dep, sidplay_dep], + install : true, + install_dir : plugins_install_dir) +endif |