Index: third_party/zlib/BUILD.gn |
diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn |
index 5086563cf550b7be2aa82ca8654e83fef3ac289d..d625a23f3d05c70f272274822aee7302c118018c 100644 |
--- a/third_party/zlib/BUILD.gn |
+++ b/third_party/zlib/BUILD.gn |
@@ -2,6 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build_overrides/build.gni") |
+ |
config("zlib_config") { |
include_dirs = [ "." ] |
} |
@@ -135,27 +137,29 @@ static_library("minizip") { |
public_configs = [ ":zlib_config" ] |
} |
-static_library("zip") { |
- sources = [ |
- "google/zip.cc", |
- "google/zip.h", |
- "google/zip_internal.cc", |
- "google/zip_internal.h", |
- "google/zip_reader.cc", |
- "google/zip_reader.h", |
- ] |
- deps = [ |
- ":minizip", |
- "//base", |
- ] |
-} |
+if (build_with_chromium) { |
+ static_library("zip") { |
+ sources = [ |
+ "google/zip.cc", |
+ "google/zip.h", |
+ "google/zip_internal.cc", |
+ "google/zip_internal.h", |
+ "google/zip_reader.cc", |
+ "google/zip_reader.h", |
+ ] |
+ deps = [ |
+ ":minizip", |
+ "//base", |
+ ] |
+ } |
-static_library("compression_utils") { |
- sources = [ |
- "google/compression_utils.cc", |
- "google/compression_utils.h", |
- ] |
- deps = [ |
- ":zlib", |
- ] |
+ static_library("compression_utils") { |
+ sources = [ |
+ "google/compression_utils.cc", |
+ "google/compression_utils.h", |
+ ] |
+ deps = [ |
+ ":zlib", |
+ ] |
+ } |
} |