From 9b68b0c1e2004095bd0eef3549bef036a020c990 Mon Sep 17 00:00:00 2001 From: Mr0maks Date: Thu, 30 May 2019 09:38:53 +0500 Subject: [PATCH] wscript: add zlib library --- engine/wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/wscript b/engine/wscript index e8f9e0a1..0de3c254 100644 --- a/engine/wscript +++ b/engine/wscript @@ -50,6 +50,9 @@ def configure(conf): conf.env.append_unique('DEFINES', 'DBGHELP') conf.env.append_unique('DEFINES', 'PSAPI_VERSION=1') + conf.check_cc(header_name='zlib.h', uselib_store='ZLIB') + conf.check_cc(lib='z', uselib_store='ZLIB') + def build(bld): libs = [ 'public' ] source = bld.path.ant_glob([ @@ -78,6 +81,9 @@ def build(bld): libs += ['LOG', 'EGL', 'ANDROID'] source += bld.path.ant_glob(['platform/android/*.cpp', 'platform/android/*.c']) + # Add zlib for all builds + libs += [ 'ZLIB' ] + # add client files if not bld.env.DEDICATED: source += bld.path.ant_glob([