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

Unified Diff: gyp/libpng.gyp

Issue 1710083007: Update libpng to 1.6.22beta (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Keep the skia.googlesource mirror Created 4 years, 10 months 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 | « gyp/codec.gyp ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/libpng.gyp
diff --git a/gyp/libpng.gyp b/gyp/libpng.gyp
index dc58459eaf0931b0929d2467ee2ac9daea28a813..6cd6a048abac7567fedc1f52a0e016c44fc891db 100644
--- a/gyp/libpng.gyp
+++ b/gyp/libpng.gyp
@@ -65,38 +65,30 @@
'../third_party/externals/libpng/pngwutil.c',
],
'conditions': [
- [ 'skia_os == "ios"', {
- # explicitly disable looking for NEON on iOS builds
+ [ '"x86" in skia_arch_type', {
'defines': [
- 'PNG_ARM_NEON_OPT=0',
+ 'PNG_INTEL_SSE_OPT=1',
],
- }, { # skia_os != "ios"
- 'dependencies': [
- 'libpng.gyp:libpng_static_neon',
+ 'sources': [
+ '../third_party/externals/libpng/contrib/intel/intel_init.c',
+ '../third_party/externals/libpng/contrib/intel/filter_sse2_intrinsics.c',
],
}],
- ],
- },
- {
- 'target_name': 'libpng_static_neon',
- 'type': 'static_library',
- 'include_dirs': [
- # Needed for generated pnglibconf.h and pngprefix.h
- '../third_party/libpng',
- '../third_party/externals/libpng',
- ],
- 'dependencies': [
- 'zlib.gyp:zlib',
- ],
- 'sources': [
- '../third_party/externals/libpng/arm/arm_init.c',
- '../third_party/externals/libpng/arm/filter_neon.S',
- '../third_party/externals/libpng/arm/filter_neon_intrinsics.c',
- ],
- 'conditions': [
- ['arm_neon_optional', {
- 'cflags': [
- '-mfpu=neon',
+ [ '(("arm64" == skia_arch_type) or \
+ ("arm" == skia_arch_type and arm_neon == 1)) and \
+ ("ios" != skia_os)', {
+ 'defines': [
+ 'PNG_ARM_NEON_OPT=2',
+ 'PNG_ARM_NEON_IMPLEMENTATION=1',
+ ],
+ 'sources': [
+ '../third_party/externals/libpng/arm/arm_init.c',
+ '../third_party/externals/libpng/arm/filter_neon_intrinsics.c',
+ ],
+ }],
+ [ '"ios" == skia_os', {
+ 'defines': [
+ 'PNG_ARM_NEON_OPT=0',
],
}],
],
« no previous file with comments | « gyp/codec.gyp ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698