| 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 import("//build_overrides/build.gni") |
| 6 |
| 5 config("zlib_config") { | 7 config("zlib_config") { |
| 6 include_dirs = [ "." ] | 8 include_dirs = [ "." ] |
| 7 } | 9 } |
| 8 | 10 |
| 9 static_library("zlib_x86_simd") { | 11 static_library("zlib_x86_simd") { |
| 10 if (!is_ios && (current_cpu == "x86" || current_cpu == "x64")) { | 12 if (!is_ios && (current_cpu == "x86" || current_cpu == "x64")) { |
| 11 sources = [ | 13 sources = [ |
| 12 "crc_folding.c", | 14 "crc_folding.c", |
| 13 "fill_window_sse.c", | 15 "fill_window_sse.c", |
| 14 ] | 16 ] |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 configs -= [ "//build/config/compiler:chromium_code" ] | 130 configs -= [ "//build/config/compiler:chromium_code" ] |
| 129 configs += [ | 131 configs += [ |
| 130 "//build/config/compiler:no_chromium_code", | 132 "//build/config/compiler:no_chromium_code", |
| 131 | 133 |
| 132 # Must be after no_chromium_code for warning flags to be ordered correctly. | 134 # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 133 ":minizip_warnings", | 135 ":minizip_warnings", |
| 134 ] | 136 ] |
| 135 public_configs = [ ":zlib_config" ] | 137 public_configs = [ ":zlib_config" ] |
| 136 } | 138 } |
| 137 | 139 |
| 138 static_library("zip") { | 140 if (build_with_chromium) { |
| 139 sources = [ | 141 static_library("zip") { |
| 140 "google/zip.cc", | 142 sources = [ |
| 141 "google/zip.h", | 143 "google/zip.cc", |
| 142 "google/zip_internal.cc", | 144 "google/zip.h", |
| 143 "google/zip_internal.h", | 145 "google/zip_internal.cc", |
| 144 "google/zip_reader.cc", | 146 "google/zip_internal.h", |
| 145 "google/zip_reader.h", | 147 "google/zip_reader.cc", |
| 146 ] | 148 "google/zip_reader.h", |
| 147 deps = [ | 149 ] |
| 148 ":minizip", | 150 deps = [ |
| 149 "//base", | 151 ":minizip", |
| 150 ] | 152 "//base", |
| 153 ] |
| 154 } |
| 155 |
| 156 static_library("compression_utils") { |
| 157 sources = [ |
| 158 "google/compression_utils.cc", |
| 159 "google/compression_utils.h", |
| 160 ] |
| 161 deps = [ |
| 162 ":zlib", |
| 163 ] |
| 164 } |
| 151 } | 165 } |
| 152 | |
| 153 static_library("compression_utils") { | |
| 154 sources = [ | |
| 155 "google/compression_utils.cc", | |
| 156 "google/compression_utils.h", | |
| 157 ] | |
| 158 deps = [ | |
| 159 ":zlib", | |
| 160 ] | |
| 161 } | |
| OLD | NEW |