mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Zlib: Compile as static library
This commit is contained in:
parent
25b1fa6fe0
commit
6ac5211062
@ -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
27
public/zlib/AMBuilder
Normal 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)
|
Loading…
Reference in New Issue
Block a user