1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 16:33:02 +00:00

build: restore support for non-pkgconfig zlib

Some platforms do not offer a .pc file for zlib, e.g. Android.
This commit is contained in:
Mia Herkt 2020-12-06 01:16:12 +01:00
parent 8e3fb7566b
commit a9aa5a1b1c
No known key found for this signature in database
GPG Key ID: 72E154B8622EC191

View File

@ -323,8 +323,10 @@ iconv support use --disable-iconv.",
}, {
'name': '--zlib',
'desc': 'zlib',
'func': check_pkg_config('zlib'),
'func': any_check(check_pkg_config('zlib'),
check_libs(['z'], check_statement('zlib.h', 'inflate(0, Z_NO_FLUSH)'))),
'req': True,
'fmsg': 'Unable to find development files for zlib.'
}, {
'name': '--libbluray',
'desc': 'Bluray support',