decoder/gme: require GME 0.6 or later

This allows dropping a few compile-time version checks and we can use
pkg-config to detect the library.
This commit is contained in:
Max Kellermann
2023-03-09 18:09:54 +01:00
parent 9475ef2202
commit 0206a46d39
3 changed files with 4 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ if libfaad_dep.found()
decoder_plugins_sources += 'FaadDecoderPlugin.cxx'
endif
libgme_dep = c_compiler.find_library('gme', required: get_option('gme'))
libgme_dep = dependency('libgme', version: '>= 0.6', required: get_option('gme'))
decoder_features.set('ENABLE_GME', libgme_dep.found())
if libgme_dep.found()
decoder_plugins_sources += 'GmeDecoderPlugin.cxx'