mpd/src/neighbor/plugins/meson.build
Max Kellermann 771c46032f meson.build: add missing libfmt dependencies
Fixes https://github.com/MusicPlayerDaemon/MPD/discussions/1281

The problem occurred when there was libfmt-dev installed, but it was
too old (e.g. on Debian Buster), and Meson used the wrap fallback.
Those internal MPD libraries where the libfmt dependency was not
declared were still using the old system libfmt headers, which are not
ABI-compatible with MPD's own libfmt build.
2021-10-15 14:26:59 +02:00

42 lines
796 B
Meson

neighbor_plugins_sources = []
found_neighbor_plugin = false
if smbclient_dep.found()
neighbor_plugins_sources += 'SmbclientNeighborPlugin.cxx'
found_neighbor_plugin = true
endif
if enable_udisks
neighbor_plugins_sources += 'UdisksNeighborPlugin.cxx'
found_neighbor_plugin = true
endif
if upnp_dep.found()
neighbor_plugins_sources += 'UpnpNeighborPlugin.cxx'
found_neighbor_plugin = true
endif
if not found_neighbor_plugin
subdir_done()
endif
neighbor_plugins = static_library(
'neighbor_plugins',
neighbor_plugins_sources,
include_directories: inc,
dependencies: [
log_dep,
dbus_dep,
smbclient_dep,
upnp_dep,
],
)
neighbor_plugins_dep = declare_dependency(
link_with: neighbor_plugins,
dependencies: [
neighbor_api_dep,
event_dep,
],
)