2010-07-19 03:42:37 +00:00
|
|
|
# -*- python -*-
|
2010-06-16 00:07:52 +00:00
|
|
|
|
|
|
|
Import('env')
|
2011-02-04 00:46:56 +00:00
|
|
|
import sys
|
|
|
|
|
2010-08-01 16:30:22 +00:00
|
|
|
if env.has_key('shared_zlib') and env['shared_zlib']:
|
2011-02-14 21:58:53 +00:00
|
|
|
env['LIBS'] += ['z']
|
2010-08-01 16:30:22 +00:00
|
|
|
Return()
|
|
|
|
|
2010-06-16 00:07:52 +00:00
|
|
|
files = [
|
|
|
|
'adler32.c',
|
|
|
|
'compress.c',
|
|
|
|
'crc32.c',
|
|
|
|
'deflate.c',
|
2011-02-05 05:29:27 +00:00
|
|
|
'gzclose.c',
|
|
|
|
'gzlib.c',
|
|
|
|
'gzread.c',
|
|
|
|
'gzwrite.c',
|
2010-06-16 00:07:52 +00:00
|
|
|
'infback.c',
|
|
|
|
'inffast.c',
|
|
|
|
'inflate.c',
|
|
|
|
'inftrees.c',
|
|
|
|
'trees.c',
|
|
|
|
'uncompr.c',
|
|
|
|
'zutil.c',
|
|
|
|
]
|
|
|
|
|
2010-08-01 16:30:22 +00:00
|
|
|
env['CPPPATH'] += ['#Externals/zlib']
|
2011-02-04 00:46:56 +00:00
|
|
|
env['LIBS'] += env.StaticObject(files)
|