2018-12-16 00:56:50 +00:00
|
|
|
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)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstgme]
|
2018-12-16 00:56:50 +00:00
|
|
|
elif get_option('gme').enabled()
|
|
|
|
error('libgme plugin was enabled but required dependencies not found.')
|
|
|
|
endif
|