amxmodx/third_party/zlib/AMBuilder
Vincent Herbet 56e8dcf3d5
Update Zlib to v1.2.11 (#527)
* Update Zlib to v1.2.10

* Adjust config for linux/mac
2018-08-27 21:35:24 +02:00

34 lines
592 B
Python

# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
import os, platform
lib = builder.compiler.StaticLibrary('zlib')
if builder.target_platform is 'linux' or builder.target_platform is 'mac':
lib.compiler.defines += [
'HAVE_UNISTD_H'
]
lib.compiler.includes += [
os.path.join(builder.sourcePath, 'third_party', 'zlib'),
]
lib.sources += [
'adler32.c',
'compress.c',
'crc32.c',
'deflate.c',
'gzclose.c',
'gzlib.c',
'gzread.c',
'gzwrite.c',
'infback.c',
'inffast.c',
'inflate.c',
'inftrees.c',
'trees.c',
'uncompr.c',
'zutil.c',
]
rvalue = builder.Add(lib)