summaryrefslogtreecommitdiff
path: root/lib/zlib/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zlib/wscript')
-rw-r--r--lib/zlib/wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/zlib/wscript b/lib/zlib/wscript
index 705fe90d9c..51e4690869 100644
--- a/lib/zlib/wscript
+++ b/lib/zlib/wscript
@@ -9,3 +9,14 @@ def configure(conf):
#endif
''',
define='HAVE_ZLIB')
+
+def build(bld):
+ if bld.CONFIG_SET('HAVE_ZLIB'):
+ bld.TARGET_ALIAS('z', 'ZLIB')
+ else:
+ bld.SAMBA_LIBRARY('ZLIB',
+ source='''adler32.c compress.c crc32.c gzio.c
+ uncompr.c deflate.c trees.c zutil.c
+ inflate.c infback.c inftrees.c inffast.c''')
+
+