summaryrefslogtreecommitdiffstats
path: root/third_party/zlib/wscript
blob: b221288e6c1927270e5f60c35c13be3035837c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python

def configure(conf):
    if conf.CHECK_ZLIB():
        conf.define('USING_SYSTEM_ZLIB', 1)

def build(bld):
    if bld.CONFIG_SET('USING_SYSTEM_ZLIB'):
        return

    bld.SAMBA_LIBRARY('z',
                      private_library=True,
                      deps='replace',
                      allow_warnings=True,
                      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''')