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 ], |
| 17 ) |
| 18 |
| 19 #env.Append( |
| 20 # CPPDEFINES = [ |
| 21 # ], |
| 22 #) |
| 23 |
| 24 input_files = [ |
| 25 # Common Files |
| 26 '$ZLIB_DIR/adler32.c', |
| 27 '$ZLIB_DIR/zutil.c', |
| 28 # Inflate Algorithm (use inflate or infback, but not both) |
| 29 '$ZLIB_DIR/inflate.c', |
| 30 '$ZLIB_DIR/inffast.c', |
| 31 '$ZLIB_DIR/inftrees.c', |
| 32 ] |
| 33 |
| 34 # The following files are not yet needed; exclude them to save size. |
| 35 if not env['OFFICIAL_BUILD']: |
| 36 input_files += [ |
| 37 # Other Algorithms |
| 38 '$ZLIB_DIR/compress.c', |
| 39 '$ZLIB_DIR/deflate.c', |
| 40 '$ZLIB_DIR/uncompr.c', |
| 41 # Other Common Files |
| 42 '$ZLIB_DIR/crc32.c', |
| 43 '$ZLIB_DIR/gzio.c', |
| 44 '$ZLIB_DIR/trees.c', |
| 45 ] |
| 46 |
| 47 env.ChromeStaticLibrary('zlib-gears', input_files) |
OLD | NEW |