summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/libpng
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@theqtcompany.com>2014-12-05 15:04:29 +0100
committerAndras Becsi <andras.becsi@theqtcompany.com>2014-12-09 10:49:28 +0100
commitaf6588f8d723931a298c995fa97259bb7f7deb55 (patch)
tree060ca707847ba1735f01af2372e0d5e494dc0366 /chromium/third_party/libpng
parent2fff84d821cc7b1c785f6404e0f8091333283e74 (diff)
BASELINE: Update chromium to 40.0.2214.28 and ninja to 1.5.3.
Change-Id: I759465284fd64d59ad120219cbe257f7402c4181 Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/third_party/libpng')
-rw-r--r--chromium/third_party/libpng/BUILD.gn26
1 files changed, 20 insertions, 6 deletions
diff --git a/chromium/third_party/libpng/BUILD.gn b/chromium/third_party/libpng/BUILD.gn
index 4ec38d1adc0..d4aaf182a9e 100644
--- a/chromium/third_party/libpng/BUILD.gn
+++ b/chromium/third_party/libpng/BUILD.gn
@@ -29,7 +29,7 @@ config("libpng_config") {
}
}
-static_library("libpng") {
+source_set("libpng_sources") {
sources = [
"png.c",
"png.h",
@@ -56,11 +56,25 @@ static_library("libpng") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
- forward_dependent_configs_from = [ "//third_party/zlib" ]
+ if (is_win) {
+ cflags = [ "/wd4267" ] # TODO(jschuh): http://crbug.com/167187
- direct_dependent_configs = [ ":libpng_config" ]
+ if (component_mode == "shared_library") {
+ defines = [ "PNG_BUILD_DLL" ]
+ }
+ }
- deps = [
- "//third_party/zlib",
- ]
+ public_configs = [ ":libpng_config" ]
+
+ public_deps = [ "//third_party/zlib" ]
+}
+
+if (is_win) {
+ component("libpng") {
+ public_deps = [ ":libpng_sources" ]
+ }
+} else {
+ group("libpng") {
+ public_deps = [ ":libpng_sources" ]
+ }
}