summaryrefslogtreecommitdiff
path: root/third_party/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/BUILD.gn')
-rw-r--r--third_party/BUILD.gn19
1 files changed, 17 insertions, 2 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index 7730212c75..4e12741f69 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -321,6 +321,21 @@ if (!build_with_chromium) {
}
}
+config("system_zlib_config") {
+ libs = [ "z" ]
+ defines = [ "USE_SYSTEM_ZLIB" ]
+}
+
+group("zlib") {
+ if (use_system_zlib) {
+ public_configs = [ ":system_zlib_config" ]
+ } else {
+ public_deps = [
+ "//third_party/zlib",
+ ]
+ }
+}
+
config("fx_libopenjpeg_warnings") {
visibility = [ ":*" ]
if (is_win) {
@@ -398,7 +413,7 @@ static_library("fx_lpng") {
defines = []
cflags = []
deps = [
- "//third_party/zlib",
+ ":zlib",
]
if (current_cpu == "x86" || current_cpu == "x64") {
@@ -437,8 +452,8 @@ if (pdf_enable_xfa) {
configs -= [ "//build/config/win:lean_and_mean" ]
}
deps = [
+ ":zlib",
"//third_party:jpeg",
- "//third_party/zlib",
]
sources = [
"libtiff/tif_aux.c",