OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 config("zlib_config") { | 5 config("zlib_config") { |
6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
7 } | 7 } |
8 | 8 |
9 static_library("zlib") { | 9 source_set("zlib") { |
10 if (!is_win) { | 10 if (!is_win) { |
11 # Don't stomp on "libzlib" on other platforms. | 11 # Don't stomp on "libzlib" on other platforms. |
12 output_name = "chrome_zlib" | 12 output_name = "chrome_zlib" |
13 } | 13 } |
14 | 14 |
15 sources = [ | 15 sources = [ |
16 "adler32.c", | 16 "adler32.c", |
17 "compress.c", | 17 "compress.c", |
18 "crc32.c", | 18 "crc32.c", |
19 "crc32.h", | 19 "crc32.h", |
(...skipping 21 matching lines...) Expand all Loading... |
41 "zutil.c", | 41 "zutil.c", |
42 "zutil.h", | 42 "zutil.h", |
43 ] | 43 ] |
44 | 44 |
45 configs -= [ "//build/config/compiler:chromium_code" ] | 45 configs -= [ "//build/config/compiler:chromium_code" ] |
46 configs += [ "//build/config/compiler:no_chromium_code" ] | 46 configs += [ "//build/config/compiler:no_chromium_code" ] |
47 | 47 |
48 direct_dependent_configs = [ ":zlib_config" ] | 48 direct_dependent_configs = [ ":zlib_config" ] |
49 } | 49 } |
50 | 50 |
51 static_library("minizip") { | 51 source_set("minizip") { |
52 sources = [ | 52 sources = [ |
53 "contrib/minizip/ioapi.c", | 53 "contrib/minizip/ioapi.c", |
54 "contrib/minizip/ioapi.h", | 54 "contrib/minizip/ioapi.h", |
55 "contrib/minizip/iowin32.c", | 55 "contrib/minizip/iowin32.c", |
56 "contrib/minizip/iowin32.h", | 56 "contrib/minizip/iowin32.h", |
57 "contrib/minizip/unzip.c", | 57 "contrib/minizip/unzip.c", |
58 "contrib/minizip/unzip.h", | 58 "contrib/minizip/unzip.h", |
59 "contrib/minizip/zip.c", | 59 "contrib/minizip/zip.c", |
60 "contrib/minizip/zip.h", | 60 "contrib/minizip/zip.h", |
61 ] | 61 ] |
(...skipping 16 matching lines...) Expand all Loading... |
78 } | 78 } |
79 | 79 |
80 deps = [ ":zlib" ] | 80 deps = [ ":zlib" ] |
81 | 81 |
82 configs -= [ "//build/config/compiler:chromium_code" ] | 82 configs -= [ "//build/config/compiler:chromium_code" ] |
83 configs += [ "//build/config/compiler:no_chromium_code" ] | 83 configs += [ "//build/config/compiler:no_chromium_code" ] |
84 direct_dependent_configs = [ ":zlib_config" ] | 84 direct_dependent_configs = [ ":zlib_config" ] |
85 } | 85 } |
86 | 86 |
87 if (!is_android) { | 87 if (!is_android) { |
88 static_library("zip") { | 88 source_set("zip") { |
89 sources = [ | 89 sources = [ |
90 "google/zip.cc", | 90 "google/zip.cc", |
91 "google/zip.h", | 91 "google/zip.h", |
92 "google/zip_internal.cc", | 92 "google/zip_internal.cc", |
93 "google/zip_internal.h", | 93 "google/zip_internal.h", |
94 "google/zip_reader.cc", | 94 "google/zip_reader.cc", |
95 "google/zip_reader.h", | 95 "google/zip_reader.h", |
96 ] | 96 ] |
97 deps = [ | 97 deps = [ |
98 ":minizip", | 98 ":minizip", |
99 "//base", | 99 "//base", |
100 ] | 100 ] |
101 } | 101 } |
102 } | 102 } |
OLD | NEW |