Commit 69f09648 authored by Max Kellermann's avatar Max Kellermann

meson.build: attempt to detect WildMidi using pkg-config

The WildMidi project added the pkg-config file in version 0.3.3, but unfortunately, Debian still doesn't ship it 4 years later: https://bugs.debian.org/916631 However, for cross-compiling, the pkg-config file is very helpful.
parent 9adda30c
......@@ -3,6 +3,8 @@ ver 0.21.24 (not yet released)
- "tagtypes" requires no permissions
* database
- simple: fix crash when mounting twice
* decoder
- wildmidi: attempt to detect WildMidi using pkg-config
* Android
- fix build failure with Android NDK r21
* Windows
......
......@@ -129,7 +129,12 @@ if wavpack_dep.found()
decoder_plugins_sources += 'WavpackDecoderPlugin.cxx'
endif
wildmidi_dep = c_compiler.find_library('WildMidi', required: get_option('wildmidi'))
if not get_option('wildmidi').disabled()
wildmidi_dep = dependency('wildmidi', required: get_option('wildmidi'))
endif
if not wildmidi_dep.found()
wildmidi_dep = c_compiler.find_library('WildMidi', required: get_option('wildmidi'))
endif
conf.set('ENABLE_WILDMIDI', wildmidi_dep.found())
if wildmidi_dep.found()
decoder_plugins_sources += 'WildmidiDecoderPlugin.cxx'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment