meson: build gme plugin

This commit is contained in:
Tim-Philipp Müller 2018-12-16 00:56:50 +00:00 committed by Sebastian Dröge
parent f102c61397
commit 7c69abd918
3 changed files with 25 additions and 1 deletions

23
ext/gme/meson.build Normal file
View file

@ -0,0 +1,23 @@
if get_option('gme').disabled()
subdir_done()
endif
have_gme = cc.has_header ('gme/gme.h')
if have_gme
gme_dep = cc.find_library('gme', required: get_option('gme'))
have_gme = gme_dep.found()
endif
if have_gme
cdata.set('HAVE_LIBGME_ACCURACY', cc.has_function('gme_enable_accuracy', dependencies: gme_dep))
gstgme = library('gstgme', 'gstgme.c',
c_args: gst_plugins_bad_args,
include_directories: [configinc],
dependencies: [gstaudio_dep, gme_dep],
install: true,
install_dir: plugins_install_dir,
)
pkgconfig.generate(gstgme, install_dir: plugins_pkgconfig_install_dir)
elif get_option('gme').enabled()
error('libgme plugin was enabled but required dependencies not found.')
endif

View file

@ -18,7 +18,7 @@ subdir('fdkaac')
subdir('flite') subdir('flite')
subdir('fluidsynth') subdir('fluidsynth')
subdir('gl') subdir('gl')
#subdir('gme') subdir('gme')
subdir('gsm') subdir('gsm')
subdir('hls') subdir('hls')
subdir('iqa') subdir('iqa')

View file

@ -99,6 +99,7 @@ option('fdkaac', type : 'feature', value : 'auto', description : 'Fraunhofer AAC
option('flite', type : 'feature', value : 'auto', description : 'Flite speech synthesizer source plugin') option('flite', type : 'feature', value : 'auto', description : 'Flite speech synthesizer source plugin')
option('fluidsynth', type : 'feature', value : 'auto', description : 'Fluidsynth MIDI decoder plugin') option('fluidsynth', type : 'feature', value : 'auto', description : 'Fluidsynth MIDI decoder plugin')
option('gl', type : 'feature', value : 'auto', description : 'GStreamer OpenGL mixer plugin') option('gl', type : 'feature', value : 'auto', description : 'GStreamer OpenGL mixer plugin')
option('gme', type : 'feature', value : 'auto', description : 'libgme gaming console music file decoder plugin')
option('gsm', type : 'feature', value : 'auto', description : 'GSM encoder/decoder plugin') option('gsm', type : 'feature', value : 'auto', description : 'GSM encoder/decoder plugin')
option('ipcpipeline', type : 'feature', value : 'auto', description : 'Inter-process communication plugin') option('ipcpipeline', type : 'feature', value : 'auto', description : 'Inter-process communication plugin')
option('iqa', type : 'feature', value : 'auto', description : 'Image quality assessment plugin') option('iqa', type : 'feature', value : 'auto', description : 'Image quality assessment plugin')