| 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 static_library("zlib") { |
| 10 external = true | |
| 11 | |
| 12 if (!is_win) { | 10 if (!is_win) { |
| 13 # Don't stomp on "libzlib" on other platforms. | 11 # Don't stomp on "libzlib" on other platforms. |
| 14 output_name = "chrome_zlib" | 12 output_name = "chrome_zlib" |
| 15 } | 13 } |
| 16 | 14 |
| 17 sources = [ | 15 sources = [ |
| 18 "adler32.c", | 16 "adler32.c", |
| 19 "compress.c", | 17 "compress.c", |
| 20 "crc32.c", | 18 "crc32.c", |
| 21 "crc32.h", | 19 "crc32.h", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 44 "zutil.h", | 42 "zutil.h", |
| 45 ] | 43 ] |
| 46 | 44 |
| 47 configs -= [ "//build/config/compiler:chromium_code" ] | 45 configs -= [ "//build/config/compiler:chromium_code" ] |
| 48 configs += [ "//build/config/compiler:no_chromium_code" ] | 46 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 49 | 47 |
| 50 direct_dependent_configs = [ ":zlib_config" ] | 48 direct_dependent_configs = [ ":zlib_config" ] |
| 51 } | 49 } |
| 52 | 50 |
| 53 static_library("minizip") { | 51 static_library("minizip") { |
| 54 external = true | |
| 55 sources = [ | 52 sources = [ |
| 56 "contrib/minizip/ioapi.c", | 53 "contrib/minizip/ioapi.c", |
| 57 "contrib/minizip/ioapi.h", | 54 "contrib/minizip/ioapi.h", |
| 58 "contrib/minizip/iowin32.c", | 55 "contrib/minizip/iowin32.c", |
| 59 "contrib/minizip/iowin32.h", | 56 "contrib/minizip/iowin32.h", |
| 60 "contrib/minizip/unzip.c", | 57 "contrib/minizip/unzip.c", |
| 61 "contrib/minizip/unzip.h", | 58 "contrib/minizip/unzip.h", |
| 62 "contrib/minizip/zip.c", | 59 "contrib/minizip/zip.c", |
| 63 "contrib/minizip/zip.h", | 60 "contrib/minizip/zip.h", |
| 64 ] | 61 ] |
| (...skipping 15 matching lines...) Expand all Loading... |
| 80 } | 77 } |
| 81 | 78 |
| 82 deps = [ ":zlib" ] | 79 deps = [ ":zlib" ] |
| 83 | 80 |
| 84 configs -= [ "//build/config/compiler:chromium_code" ] | 81 configs -= [ "//build/config/compiler:chromium_code" ] |
| 85 configs += [ "//build/config/compiler:no_chromium_code" ] | 82 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 86 direct_dependent_configs = [ ":zlib_config" ] | 83 direct_dependent_configs = [ ":zlib_config" ] |
| 87 } | 84 } |
| 88 | 85 |
| 89 static_library("zip") { | 86 static_library("zip") { |
| 90 external = true | |
| 91 sources = [ | 87 sources = [ |
| 92 "google/zip.cc", | 88 "google/zip.cc", |
| 93 "google/zip.h", | 89 "google/zip.h", |
| 94 "google/zip_internal.cc", | 90 "google/zip_internal.cc", |
| 95 "google/zip_internal.h", | 91 "google/zip_internal.h", |
| 96 "google/zip_reader.cc", | 92 "google/zip_reader.cc", |
| 97 "google/zip_reader.h", | 93 "google/zip_reader.h", |
| 98 ] | 94 ] |
| 99 deps = [ | 95 deps = [ |
| 100 ":minizip", | 96 ":minizip", |
| 101 "//base", | 97 "//base", |
| 102 ] | 98 ] |
| 103 } | 99 } |
| OLD | NEW |