summaryrefslogtreecommitdiffstats
path: root/third_party/libpng/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/libpng/BUILD.gn')
-rw-r--r--third_party/libpng/BUILD.gn22
1 files changed, 12 insertions, 10 deletions
diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn
index d4aaf18..488ef43 100644
--- a/third_party/libpng/BUILD.gn
+++ b/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",
@@ -66,15 +62,21 @@ source_set("libpng_sources") {
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",
+ ]
}
}