meson, util: Make zlib optional again
authorJesse Natalie <jenatali@microsoft.com>
Thu, 18 Mar 2021 16:12:46 +0000 (09:12 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Mar 2021 19:33:59 +0000 (19:33 +0000)
commit012bc2fc776345630edc85ad10db8e9e75cf5ed0
tree589e9789e116e89ea5b61e25f6fab93711ccd292
parent28bf06f350eef8489ad771e1458579b75150b5fa
meson, util: Make zlib optional again

This adds a HAVE_COMPRESSION macro, which is undefined if neither zlib
nor zstd are present, and is used to no-op compress.h/c. This also has
a side effect of fixing SCons, since it won't define this macro.

Fixes: d7ecbd5bf837 ("util: create some standalone compression helpers")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9689>
Android.common.mk
meson.build
src/util/compress.c
src/util/compress.h