summaryrefslogtreecommitdiff
path: root/src/third_party/zlib/SConscript
blob: 52efa920e14172d5ed85d494133b89b1bd3949d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- mode: python; -*-
# NOTE: This file is auto-generated by "zlib_get_sources.sh" - DO NOT EDIT

Import("env")

env = env.Clone(NINJA_GENSOURCE_INDEPENDENT=True)
env.Append(CPPDEFINES=["HAVE_STDARG_H"])
if not env.TargetOSIs('windows'):
    env.Append(CPPDEFINES=["HAVE_UNISTD_H"])

env.Library(
    target="zlib",
    source=[
        'adler32.c',
        'crc32.c',
        'compress.c',
        'deflate.c',
        'infback.c',
        'inffast.c',
        'inflate.c',
        'inftrees.c',
        'trees.c',
        'uncompr.c',
        'zutil.c',
    ],
    LIBDEPS_TAGS=[
        'init-no-global-side-effects',
    ],
)