aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2021-11-15 10:03:56 -0600
committerEli Schwartz <eschwartz93@gmail.com>2021-11-15 12:40:00 -0500
commita4b4b219085de40612e8f8b65ab994e305ea4eee (patch)
tree3280ff9d5a1f0e67b3cf49ea49c8f2d124638f03 /mesonbuild/dependencies
parent680c6bb012c4566935d2589565ef4d2031442307 (diff)
downloadmeson-a4b4b219085de40612e8f8b65ab994e305ea4eee.zip
meson-a4b4b219085de40612e8f8b65ab994e305ea4eee.tar.gz
meson-a4b4b219085de40612e8f8b65ab994e305ea4eee.tar.bz2
dependencies/zlib: Add system zlib method for android
The same method that the BSDs use should also work for android. Also update the tests and docs where appropriate.
Diffstat (limited to 'mesonbuild/dependencies')
-rw-r--r--mesonbuild/dependencies/dev.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py
index 0df8685..016cf92 100644
--- a/mesonbuild/dependencies/dev.py
+++ b/mesonbuild/dependencies/dev.py
@@ -466,7 +466,7 @@ class ZlibSystemDependency(SystemDependency):
# I'm not sure this is entirely correct. What if we're cross compiling
# from something to macOS?
if ((m.is_darwin() and isinstance(self.clib_compiler, (AppleClangCCompiler, AppleClangCPPCompiler))) or
- m.is_freebsd() or m.is_dragonflybsd()):
+ m.is_freebsd() or m.is_dragonflybsd() or m.is_android()):
# No need to set includes,
# on macos xcode/clang will do that for us.
# on freebsd zlib.h is in /usr/include
@@ -474,7 +474,7 @@ class ZlibSystemDependency(SystemDependency):
self.is_found = True
self.link_args = ['-lz']
elif m.is_windows():
- # Without a clib_compiler we can't find zlib, s just give up.
+ # Without a clib_compiler we can't find zlib, so just give up.
if self.clib_compiler is None:
self.is_found = False
return