summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
Diffstat (limited to 'third_party')
-rw-r--r--third_party/BUILD.gn15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index a188f56194..3861f6aed7 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -398,6 +398,21 @@ static_library("fx_libopenjpeg") {
]
}
+config("system_libpng_config") {
+ libs = [ "png" ]
+ defines = [ "USE_SYSTEM_LIBPNG" ]
+}
+
+group("png") {
+ if (use_system_libpng) {
+ public_configs = [ ":system_libpng_config" ]
+ } else {
+ public_deps = [
+ ":fx_lpng",
+ ]
+ }
+}
+
static_library("fx_lpng") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [