Merge branch 'v0.21.x'

This commit is contained in:
Max Kellermann 2019-03-18 10:01:00 +01:00
commit 4722175049
5 changed files with 19 additions and 3 deletions

3
NEWS
View File

@ -2,6 +2,9 @@ ver 0.22 (not yet released)
* input
- ffmpeg: allow partial reads
ver 0.21.7 (not yet released)
* require Meson 0.49.0 for native libgcrypt-config support
ver 0.21.6 (2019/03/17)
* protocol
- allow loading playlists specified as absolute filesystem paths

View File

@ -54,7 +54,7 @@ Download the source tarball from the `MPD home page <https://musicpd.org>`_ and
In any case, you need:
* a C++14 compiler (e.g. gcc 6.0 or clang 3.9)
* `Meson 0.47.2 <http://mesonbuild.com/>`__ and `Ninja
* `Meson 0.49.0 <http://mesonbuild.com/>`__ and `Ninja
<https://ninja-build.org/>`__
* Boost 1.58
* pkg-config

View File

@ -2,7 +2,7 @@ project(
'mpd',
['c', 'cpp'],
version: '0.22~git',
meson_version: '>= 0.47.2',
meson_version: '>= 0.49.0',
default_options: [
'c_std=c99',
'cpp_std=c++14'

View File

@ -1,4 +1,17 @@
# Since version 0.49.0 Meson has native libgcrypt dependency support, which has
# the advantage over find_library() as it uses libgcrypt-config to query the
# required linker flags.
# However, we still need to use find_library() first, to prevent Meson
# falsly assuming a target libgcrypt is available in case there is no
# libgcrypt-config entry in the cross file and libgcrypt is installed on the
# host. In this case, Meson will falsly use the native libgcrypt-config and
# will falsly assume it has found the gcrypt library for the target.
#
# See: https://github.com/MusicPlayerDaemon/MPD/pull/495
gcrypt_dep = c_compiler.find_library('gcrypt', required: get_option('qobuz'))
if gcrypt_dep.found()
gcrypt_dep = dependency('libgcrypt')
endif
if not gcrypt_dep.found()
subdir_done()
endif

View File

@ -1,7 +1,7 @@
windows_conf = configuration_data()
windows_conf.set('VERSION', meson.project_version())
splitted_version = meson.project_version().split('.')
splitted_version = meson.project_version().split('~')[0].split('.')
windows_conf.set('VERSION_MAJOR', splitted_version[0])
windows_conf.set('VERSION_MINOR', splitted_version.get(1, '0'))
windows_conf.set('VERSION_REVISION', splitted_version.get(2, '0'))