
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.
42 lines
796 B
Meson
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,
|
|
],
|
|
)
|