Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1037)

Unified Diff: third_party/libpng/BUILD.gn

Issue 1509773004: CL for perf tryjob on android Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/libpng/LICENSE » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libpng/BUILD.gn
diff --git a/third_party/libpng/BUILD.gn b/third_party/libpng/BUILD.gn
index 21420596db7fcaae359799e594aec3d1e320947f..854a245e2ebaaf859ec2a03d5a640ecce5d13b29 100644
--- a/third_party/libpng/BUILD.gn
+++ b/third_party/libpng/BUILD.gn
@@ -7,12 +7,16 @@ config("libpng_config") {
defines = [
"CHROME_PNG_WRITE_SUPPORT",
- "PNG_USER_CONFIG",
]
if (is_android) {
#'toolsets': ['target', 'host'],
defines += [ "CHROME_PNG_READ_PACK_SUPPORT" ] # Required by freetype.
+ defines += [ "PNG_ARM_NEON_OPT=2" ]
+ }
+
+ if (is_ios) {
+ defines += [ "PNG_ARM_NEON_OPT=0" ]
}
if (is_win) {
@@ -39,25 +43,35 @@ source_set("libpng_sources") {
"png.c",
"png.h",
"pngconf.h",
+ "pngdebug.h",
"pngerror.c",
- "pnggccrd.c",
"pngget.c",
+ "pnginfo.h",
+ "pnglibconf.h",
"pngmem.c",
"pngpread.c",
+ "pngpriv.h",
"pngread.c",
"pngrio.c",
"pngrtran.c",
"pngrutil.c",
"pngset.c",
+ "pngstruct.h",
"pngtrans.c",
- "pngusr.h",
- "pngvcrd.c",
"pngwio.c",
"pngwrite.c",
"pngwtran.c",
"pngwutil.c",
]
+ if (target_cpu == "arm" || target_cpu == "arm64") {
+ sources += [
+ "arm/arm_init.c",
+ "arm/filter_neon.S",
+ "arm/filter_neon_intrinsics.c",
+ ]
+ }
+
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/libpng/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698