sgk@google.com | 5137d27 | 2008-10-21 20:24:56 +0000 | [diff] [blame^] | 1 | # 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__ = """ |
| 6 | Configuration for building zlib.lib / libzlib.a. |
| 7 | """ |
| 8 | |
| 9 | Import('env') |
| 10 | |
| 11 | env = env.Clone() |
| 12 | |
| 13 | if env['PLATFORM'] == 'win32': |
| 14 | env.Append( |
| 15 | CCFLAGS = [ |
| 16 | '/TC', |
| 17 | '/wd4800', |
| 18 | ], |
| 19 | ) |
| 20 | |
| 21 | input_files = [ |
| 22 | 'adler32.c', |
| 23 | 'compress.c', |
| 24 | 'crc32.c', |
| 25 | 'deflate.c', |
| 26 | 'gzio.c', |
| 27 | 'infback.c', |
| 28 | 'inffast.c', |
| 29 | 'inflate.c', |
| 30 | 'inftrees.c', |
| 31 | 'trees.c', |
| 32 | 'uncompr.c', |
| 33 | 'zutil.c', |
| 34 | ] |
| 35 | |
| 36 | env.ChromeStaticLibrary('zlib', input_files) |