OLD | NEW |
---|---|
1 # Copyright 2014 Google Inc. | 1 # Copyright 2014 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 { | 6 { |
7 'variables': { | 7 'variables': { |
8 'skia_warnings_as_errors': 0, | 8 'skia_warnings_as_errors': 0, |
9 }, | 9 }, |
10 'targets': [ | 10 'targets': [ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 '../third_party/externals/libpng/pngrtran.c', | 58 '../third_party/externals/libpng/pngrtran.c', |
59 '../third_party/externals/libpng/pngrutil.c', | 59 '../third_party/externals/libpng/pngrutil.c', |
60 '../third_party/externals/libpng/pngset.c', | 60 '../third_party/externals/libpng/pngset.c', |
61 '../third_party/externals/libpng/pngtrans.c', | 61 '../third_party/externals/libpng/pngtrans.c', |
62 '../third_party/externals/libpng/pngwio.c', | 62 '../third_party/externals/libpng/pngwio.c', |
63 '../third_party/externals/libpng/pngwrite.c', | 63 '../third_party/externals/libpng/pngwrite.c', |
64 '../third_party/externals/libpng/pngwtran.c', | 64 '../third_party/externals/libpng/pngwtran.c', |
65 '../third_party/externals/libpng/pngwutil.c', | 65 '../third_party/externals/libpng/pngwutil.c', |
66 ], | 66 ], |
67 'conditions': [ | 67 'conditions': [ |
68 [ 'skia_os == "ios"', { | 68 [ '"x86" in skia_arch_type', { |
69 # explicitly disable looking for NEON on iOS builds | 69 'defines': [ |
70 'PNG_INTEL_SSE_OPT=1', | |
71 ], | |
72 'sources': [ | |
73 '../third_party/externals/libpng/contrib/intel/intel_init.c', | |
74 '../third_party/externals/libpng/contrib/intel/filter_sse2_intrinsic s.c', | |
75 ], | |
76 }], | |
77 [ '(("arm64" == skia_arch_type) or \ | |
78 ("arm" == skia_arch_type and arm_neon == 1)) and \ | |
79 ("ios" != skia_os)', { | |
80 'defines': [ | |
81 'PNG_ARM_NEON_OPT=2', | |
82 'PNG_ARM_NEON_IMPLEMENTATION=1', | |
83 ], | |
84 'sources': [ | |
85 '../third_party/externals/libpng/arm/arm_init.c', | |
86 '../third_party/externals/libpng/arm/filter_neon_intrinsics.c', | |
87 ], | |
88 }], | |
89 [ '"arm" == skia_arch_type and arm_neon_optional == 1', { | |
mtklein
2016/02/19 17:28:30
Let's take the opportunity to drop this. We're pr
msarett
2016/02/19 18:36:18
Done.
| |
90 'defines': [ | |
91 'PNG_ARM_NEON_API_SUPPORTED', | |
92 'PNG_ARM_NEON_CHECK_SUPPORTED', | |
93 'PNG_ARM_NEON_IMPLEMENTATION=1', | |
94 ], | |
95 'sources': [ | |
96 '../third_party/externals/libpng/arm/arm_init.c', | |
97 '../third_party/externals/libpng/arm/filter_neon_intrinsics.c', | |
98 ], | |
99 'cflags': [ | |
100 '-mfpu=neon', | |
101 ], | |
102 }], | |
103 [ '"ios" == skia_os', { | |
70 'defines': [ | 104 'defines': [ |
71 'PNG_ARM_NEON_OPT=0', | 105 'PNG_ARM_NEON_OPT=0', |
72 ], | 106 ], |
73 }, { # skia_os != "ios" | |
74 'dependencies': [ | |
75 'libpng.gyp:libpng_static_neon', | |
76 ], | |
77 }], | |
78 ], | |
79 }, | |
80 { | |
81 'target_name': 'libpng_static_neon', | |
82 'type': 'static_library', | |
83 'include_dirs': [ | |
84 # Needed for generated pnglibconf.h and pngprefix.h | |
85 '../third_party/libpng', | |
86 '../third_party/externals/libpng', | |
87 ], | |
88 'dependencies': [ | |
89 'zlib.gyp:zlib', | |
90 ], | |
91 'sources': [ | |
92 '../third_party/externals/libpng/arm/arm_init.c', | |
93 '../third_party/externals/libpng/arm/filter_neon.S', | |
94 '../third_party/externals/libpng/arm/filter_neon_intrinsics.c', | |
95 ], | |
96 'conditions': [ | |
97 ['arm_neon_optional', { | |
98 'cflags': [ | |
99 '-mfpu=neon', | |
100 ], | |
101 }], | 107 }], |
102 ], | 108 ], |
103 } | 109 } |
104 ] | 110 ] |
105 } | 111 } |
OLD | NEW |