| 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" ]
|
|
|
|
|