mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
meson: build sid plugin
https://bugzilla.gnome.org/show_bug.cgi?id=784135
This commit is contained in:
parent
c15a00537f
commit
27b77f93b5
2 changed files with 26 additions and 1 deletions
|
@ -6,6 +6,6 @@ subdir('dvdread')
|
|||
subdir('lame')
|
||||
subdir('mpeg2dec')
|
||||
subdir('mpg123')
|
||||
#subdir('sidplay') # FIXME
|
||||
subdir('sidplay')
|
||||
subdir('twolame')
|
||||
subdir('x264')
|
||||
|
|
25
ext/sidplay/meson.build
Normal file
25
ext/sidplay/meson.build
Normal file
|
@ -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
|
Loading…
Reference in a new issue