archive/plugins/meson.build: do not generate empty library

If no archive library was found, return from the "plugins" directory
without creating "libarchive_plugins.a".  Empty static libraries are
unsupported on some operating systems such as macOS.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1650
This commit is contained in:
Max Kellermann 2022-11-03 20:34:35 +01:00
parent 1944c826bc
commit 32bddfabea
2 changed files with 5 additions and 0 deletions

1
NEWS
View File

@ -1,4 +1,5 @@
ver 0.23.11 (not yet released)
* macOS: fix build failure "no archive members specified"
* Android/Windows
- update OpenSSL to 3.0.7

View File

@ -22,6 +22,10 @@ if libzzip_dep.found()
found_archive_plugin = true
endif
if not found_archive_plugin
subdir_done()
endif
archive_plugins = static_library(
'archive_plugins',
archive_plugins_sources,