Skip to content
Snippets Groups Projects
Commit eed2732a authored by thestig's avatar thestig Committed by Commit bot
Browse files

Build third_party/zlib/google only when build_with_chromium is true.

This lets other projects reuse the plain parts of third_party/zlib
without depending on Chromium's base/.

BUG=541704

Review-Url: https://codereview.chromium.org/2781353002
Cr-Original-Commit-Position: refs/heads/master@{#460863}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: da0685cc8b20ccce91494583f91aa4a8723ad7c3
parent 33b952fc
No related branches found
No related tags found
No related merge requests found
......@@ -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",
]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment