summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/libpng
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-06-18 14:10:49 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-06-18 13:53:24 +0000
commit813fbf95af77a531c57a8c497345ad2c61d475b3 (patch)
tree821b2c8de8365f21b6c9ba17a236fb3006a1d506 /chromium/third_party/libpng
parentaf6588f8d723931a298c995fa97259bb7f7deb55 (diff)
BASELINE: Update chromium to 44.0.2403.47
Change-Id: Ie056fedba95cf5e5c76b30c4b2c80fca4764aa2f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'chromium/third_party/libpng')
-rw-r--r--chromium/third_party/libpng/BUILD.gn30
1 files changed, 14 insertions, 16 deletions
diff --git a/chromium/third_party/libpng/BUILD.gn b/chromium/third_party/libpng/BUILD.gn
index d4aaf182a9e..787d4fa7d00 100644
--- a/chromium/third_party/libpng/BUILD.gn
+++ b/chromium/third_party/libpng/BUILD.gn
@@ -3,9 +3,7 @@
# found in the LICENSE file.
config("libpng_config") {
- include_dirs = [
- ".",
- ]
+ include_dirs = [ "." ]
defines = [
"CHROME_PNG_WRITE_SUPPORT",
@@ -14,9 +12,7 @@ config("libpng_config") {
if (is_android) {
#'toolsets': ['target', 'host'],
- defines += [
- "CHROME_PNG_READ_PACK_SUPPORT", # Required by freetype.
- ]
+ defines += [ "CHROME_PNG_READ_PACK_SUPPORT" ] # Required by freetype.
}
if (is_win) {
@@ -30,7 +26,7 @@ config("libpng_config") {
}
source_set("libpng_sources") {
- sources = [
+ sources = [
"png.c",
"png.h",
"pngconf.h",
@@ -56,25 +52,27 @@ source_set("libpng_sources") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
- if (is_win) {
- cflags = [ "/wd4267" ] # TODO(jschuh): http://crbug.com/167187
-
- if (component_mode == "shared_library") {
- defines = [ "PNG_BUILD_DLL" ]
- }
+ if (is_win && is_component_build) {
+ defines = [ "PNG_BUILD_DLL" ]
}
public_configs = [ ":libpng_config" ]
- public_deps = [ "//third_party/zlib" ]
+ public_deps = [
+ "//third_party/zlib",
+ ]
}
if (is_win) {
component("libpng") {
- public_deps = [ ":libpng_sources" ]
+ public_deps = [
+ ":libpng_sources",
+ ]
}
} else {
group("libpng") {
- public_deps = [ ":libpng_sources" ]
+ public_deps = [
+ ":libpng_sources",
+ ]
}
}