0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02: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',