|
39 | 39 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
40 | 40 | 'defines': [ 'ZLIB_IMPLEMENTATION' ],
|
41 | 41 | 'direct_dependent_settings': {
|
| 42 | + 'conditions': [ |
| 43 | + ['target_arch in "ia32 x64" and OS!="ios"', { |
| 44 | + 'defines': [ 'ADLER32_SIMD_SSSE3' ], |
| 45 | + 'conditions': [ |
| 46 | + ['OS=="win"', { |
| 47 | + 'defines': [ 'X86_WINDOWS' ], |
| 48 | + },{ |
| 49 | + 'defines': [ 'X86_NOT_WINDOWS' ], |
| 50 | + }], |
| 51 | + ], |
| 52 | + }], |
| 53 | + ['arm_fpu=="neon"', { |
| 54 | + 'defines': [ 'ADLER32_SIMD_NEON' ], |
| 55 | + }], |
| 56 | + ], |
42 | 57 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
43 | 58 | },
|
44 | 59 | 'sources': [
|
|
70 | 85 | 'defines': [ 'CRC32_ARMV8_CRC32' ],
|
71 | 86 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
72 | 87 | 'direct_dependent_settings': {
|
| 88 | + 'defines': [ 'CRC32_ARMV8_CRC32' ], |
| 89 | + 'conditions': [ |
| 90 | + ['OS=="android"', { |
| 91 | + 'defines': [ 'ARMV8_OS_ANDROID' ], |
| 92 | + }], |
| 93 | + ['OS=="linux"', { |
| 94 | + 'defines': [ 'ARMV8_OS_LINUX' ], |
| 95 | + }], |
| 96 | + ['OS=="mac"', { |
| 97 | + 'defines': [ 'ARMV8_OS_MACOS' ], |
| 98 | + }], |
| 99 | + ['OS=="win"', { |
| 100 | + 'defines': [ 'ARMV8_OS_WINDOWS' ], |
| 101 | + }], |
| 102 | + ], |
73 | 103 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
74 | 104 | },
|
75 | 105 | 'sources': [
|
|
102 | 132 | ],
|
103 | 133 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
104 | 134 | 'direct_dependent_settings': {
|
| 135 | + 'defines': [ 'CRC32_SIMD_SSE42_PCLMUL' ], |
105 | 136 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
106 | 137 | },
|
107 | 138 | 'sources': [
|
|
127 | 158 | 'defines': [ 'INFLATE_CHUNK_READ_64LE' ],
|
128 | 159 | }],
|
129 | 160 | ],
|
130 |
| - }] |
| 161 | + }], |
131 | 162 | ],
|
132 | 163 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
133 | 164 | 'defines': [ 'ZLIB_IMPLEMENTATION' ],
|
134 | 165 | 'direct_dependent_settings': {
|
| 166 | + 'conditions': [ |
| 167 | + ['target_arch in "ia32 x64" and OS!="ios"', { |
| 168 | + 'defines': [ 'INFLATE_CHUNK_SIMD_SSE2' ], |
| 169 | + }], |
| 170 | + ['arm_fpu=="neon"', { |
| 171 | + 'defines': [ 'INFLATE_CHUNK_SIMD_NEON' ], |
| 172 | + }], |
| 173 | + ], |
135 | 174 | 'include_dirs': [ '<(ZLIB_ROOT)' ],
|
136 | 175 | },
|
137 | 176 | 'sources': [
|
|
177 | 216 | ],
|
178 | 217 | 'defines': [ 'DEFLATE_SLIDE_HASH_SSE2' ],
|
179 | 218 | 'conditions': [
|
180 |
| - ['OS=="win"', { |
181 |
| - 'defines': [ 'X86_WINDOWS' ], |
182 |
| - },{ |
183 |
| - 'defines': [ 'X86_NOT_WINDOWS' ], |
| 219 | + ['target_arch=="x64"', { |
| 220 | + 'defines': [ 'INFLATE_CHUNK_READ_64LE' ], |
184 | 221 | }],
|
185 | 222 | ],
|
186 | 223 | }],
|
|
0 commit comments