Zlib: Compile as static library

This commit is contained in:
Arkshine 2015-02-02 19:55:54 +01:00
parent 25b1fa6fe0
commit 6ac5211062
2 changed files with 32 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class AMXXConfig(object):
self.mysql_path = None
self.generated_headers = []
self.versionlib = None
self.zlib = None
self.csx_app = None
self.stdcxx_path = None
@ -356,6 +357,10 @@ if AMXX.use_auto_versioning():
{ 'AMXX': AMXX }
)
AMXX.zlib = builder.RunScript(
'public/zlib/AMBuilder'
)
builder.RunBuildScripts(
[
'amxmodx/AMBuilder',

27
public/zlib/AMBuilder Normal file
View File

@ -0,0 +1,27 @@
# vim: sts=2 ts=8 sw=2 tw=99 et ft=python:
import os, platform
builder.SetBuildFolder('zlib')
lib = builder.compiler.StaticLibrary('zlib')
lib.compiler.includes += [
os.path.join(builder.sourcePath, 'public', 'zlib'),
]
lib.sources += [
'adler32.c',
'compress.c',
'crc32.c',
'deflate.c',
'gzio.c',
'infback.c',
'inffast.c',
'inflate.c',
'inftrees.c',
'trees.c',
'uncompr.c',
'zutil.c',
]
rvalue = builder.Add(lib)