Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: third_party/zlib/BUILD.gn

Issue 2781353002: Build third_party/zlib/google only when build_with_chromium is true. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
+ ]
+ }
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698