OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2013 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 config("zlib_config") { |
| 6 include_dirs = [ "//third_party/zlib" ] |
| 7 } |
| 8 |
| 9 static_library("zlib") { |
| 10 if (!is_win) { |
| 11 # Don't stomp on "libzlib" on other platforms. |
| 12 output_name = "chrome_zlib" |
| 13 } |
| 14 |
| 15 zlib_path = "//third_party/zlib" |
| 16 sources = [ |
| 17 "$zlib_path/adler32.c", |
| 18 "$zlib_path/compress.c", |
| 19 "$zlib_path/crc32.c", |
| 20 "$zlib_path/crc32.h", |
| 21 "$zlib_path/deflate.c", |
| 22 "$zlib_path/deflate.h", |
| 23 "$zlib_path/gzclose.c", |
| 24 "$zlib_path/gzguts.h", |
| 25 "$zlib_path/gzlib.c", |
| 26 "$zlib_path/gzread.c", |
| 27 "$zlib_path/gzwrite.c", |
| 28 "$zlib_path/infback.c", |
| 29 "$zlib_path/inffast.c", |
| 30 "$zlib_path/inffast.h", |
| 31 "$zlib_path/inffixed.h", |
| 32 "$zlib_path/inflate.c", |
| 33 "$zlib_path/inflate.h", |
| 34 "$zlib_path/inftrees.c", |
| 35 "$zlib_path/inftrees.h", |
| 36 "$zlib_path/mozzconf.h", |
| 37 "$zlib_path/trees.c", |
| 38 "$zlib_path/trees.h", |
| 39 "$zlib_path/uncompr.c", |
| 40 "$zlib_path/zconf.h", |
| 41 "$zlib_path/zlib.h", |
| 42 "$zlib_path/zutil.c", |
| 43 "$zlib_path/zutil.h", |
| 44 ] |
| 45 |
| 46 configs -= [ "//build/config/compiler:chromium_code" ] |
| 47 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 48 |
| 49 all_dependent_configs = [ ":zlib_config" ] |
| 50 |
| 51 if (is_clang) { |
| 52 cflags = [ |
| 53 "-Wno-shift-negative-value", |
| 54 ] |
| 55 } |
| 56 } |
OLD | NEW |