| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 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 # Ripped and modded from chrome. | |
| 6 | |
| 7 Import('env') | |
| 8 | |
| 9 env = env.Clone( | |
| 10 ) | |
| 11 | |
| 12 env.Replace( | |
| 13 ZLIB_DIR = '$THIRD_PARTY_DIR/zlib', | |
| 14 CPPPATH = [ | |
| 15 '$ZLIB_DIR', | |
| 16 '$VC80_CPPPATH', | |
| 17 ], | |
| 18 ) | |
| 19 | |
| 20 #env.Append( | |
| 21 # CPPDEFINES = [ | |
| 22 # ], | |
| 23 #) | |
| 24 | |
| 25 input_files = [ | |
| 26 # Common Files | |
| 27 '$ZLIB_DIR/adler32.c', | |
| 28 '$ZLIB_DIR/zutil.c', | |
| 29 # Inflate Algorithm (use inflate or infback, but not both) | |
| 30 '$ZLIB_DIR/inflate.c', | |
| 31 '$ZLIB_DIR/inffast.c', | |
| 32 '$ZLIB_DIR/inftrees.c', | |
| 33 ] | |
| 34 | |
| 35 # The following files are not yet needed; exclude them to save size. | |
| 36 if not env['OFFICIAL_BUILD']: | |
| 37 input_files += [ | |
| 38 # Other Algorithms | |
| 39 '$ZLIB_DIR/compress.c', | |
| 40 '$ZLIB_DIR/deflate.c', | |
| 41 '$ZLIB_DIR/uncompr.c', | |
| 42 # Other Common Files | |
| 43 '$ZLIB_DIR/crc32.c', | |
| 44 '$ZLIB_DIR/gzio.c', | |
| 45 '$ZLIB_DIR/trees.c', | |
| 46 ] | |
| 47 | |
| 48 env.GearsStaticLibrary('zlib-gears', input_files) | |
| OLD | NEW |