blob: 23809d443613fd0aa0a7f3a54e5dc8112878fabe [file] [log] [blame]
sgk@google.com5137d272008-10-21 20:24:56 +00001# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5__doc__ = """
6Configuration for building zlib.lib / libzlib.a.
7"""
8
9Import('env')
10
sgk@google.comee5d1ac2008-11-21 06:04:04 +000011if env.WantSystemLib('zlib'):
12 env.Append(ZLIB_LIB = ['z'])
13 Return()
14
sgk@google.com5137d272008-10-21 20:24:56 +000015env = env.Clone()
16
sgk@google.comee5d1ac2008-11-21 06:04:04 +000017env.Append(
18 ZLIB_LIB = ['zlib'],
19)
20
sgk@google.comc4202a22008-12-18 23:26:29 +000021if env.Bit('windows'):
sgk@google.com5137d272008-10-21 20:24:56 +000022 env.Append(
23 CCFLAGS = [
24 '/TC',
25 '/wd4800',
26 ],
27 )
28
29input_files = [
30 'adler32.c',
31 'compress.c',
32 'crc32.c',
33 'deflate.c',
34 'gzio.c',
35 'infback.c',
36 'inffast.c',
37 'inflate.c',
38 'inftrees.c',
39 'trees.c',
40 'uncompr.c',
41 'zutil.c',
42]
43
44env.ChromeStaticLibrary('zlib', input_files)