|
2241 | 2241 | 'type': 'static_library', |
2242 | 2242 | 'toolsets': ['host', 'target'], |
2243 | 2243 | 'conditions': [ |
2244 | | - ['OS=="win"', { |
| 2244 | + ['v8_use_system_zlib==0', { |
2245 | 2245 | 'conditions': [ |
2246 | | - ['"<(target_arch)"=="arm64" and _toolset=="target"', { |
2247 | | - 'defines': ['CPU_NO_SIMD'] |
2248 | | - }, { |
2249 | | - 'defines': ['X86_WINDOWS'] |
2250 | | - }] |
2251 | | - ] |
| 2246 | + ['OS=="win"', { |
| 2247 | + 'conditions': [ |
| 2248 | + ['"<(target_arch)"=="arm64" and _toolset=="target"', { |
| 2249 | + 'defines': ['CPU_NO_SIMD'] |
| 2250 | + }, { |
| 2251 | + 'defines': ['X86_WINDOWS'] |
| 2252 | + }] |
| 2253 | + ] |
| 2254 | + }], |
| 2255 | + ], |
| 2256 | + 'direct_dependent_settings': { |
| 2257 | + 'include_dirs': [ |
| 2258 | + '<(V8_ROOT)/third_party/zlib', |
| 2259 | + '<(V8_ROOT)/third_party/zlib/google', |
| 2260 | + ], |
| 2261 | + }, |
| 2262 | + 'defines': [ 'ZLIB_IMPLEMENTATION' ], |
| 2263 | + 'include_dirs': [ |
| 2264 | + '<(V8_ROOT)/third_party/zlib', |
| 2265 | + '<(V8_ROOT)/third_party/zlib/google', |
| 2266 | + ], |
| 2267 | + 'sources': [ |
| 2268 | + '<(V8_ROOT)/third_party/zlib/adler32.c', |
| 2269 | + '<(V8_ROOT)/third_party/zlib/chromeconf.h', |
| 2270 | + '<(V8_ROOT)/third_party/zlib/compress.c', |
| 2271 | + '<(V8_ROOT)/third_party/zlib/contrib/optimizations/insert_string.h', |
| 2272 | + '<(V8_ROOT)/third_party/zlib/contrib/optimizations/insert_string.h', |
| 2273 | + '<(V8_ROOT)/third_party/zlib/cpu_features.c', |
| 2274 | + '<(V8_ROOT)/third_party/zlib/cpu_features.h', |
| 2275 | + '<(V8_ROOT)/third_party/zlib/crc32.c', |
| 2276 | + '<(V8_ROOT)/third_party/zlib/crc32.h', |
| 2277 | + '<(V8_ROOT)/third_party/zlib/deflate.c', |
| 2278 | + '<(V8_ROOT)/third_party/zlib/deflate.h', |
| 2279 | + '<(V8_ROOT)/third_party/zlib/gzclose.c', |
| 2280 | + '<(V8_ROOT)/third_party/zlib/gzguts.h', |
| 2281 | + '<(V8_ROOT)/third_party/zlib/gzlib.c', |
| 2282 | + '<(V8_ROOT)/third_party/zlib/gzread.c', |
| 2283 | + '<(V8_ROOT)/third_party/zlib/gzwrite.c', |
| 2284 | + '<(V8_ROOT)/third_party/zlib/infback.c', |
| 2285 | + '<(V8_ROOT)/third_party/zlib/inffast.c', |
| 2286 | + '<(V8_ROOT)/third_party/zlib/inffast.h', |
| 2287 | + '<(V8_ROOT)/third_party/zlib/inffixed.h', |
| 2288 | + '<(V8_ROOT)/third_party/zlib/inflate.c', |
| 2289 | + '<(V8_ROOT)/third_party/zlib/inflate.h', |
| 2290 | + '<(V8_ROOT)/third_party/zlib/inftrees.c', |
| 2291 | + '<(V8_ROOT)/third_party/zlib/inftrees.h', |
| 2292 | + '<(V8_ROOT)/third_party/zlib/trees.c', |
| 2293 | + '<(V8_ROOT)/third_party/zlib/trees.h', |
| 2294 | + '<(V8_ROOT)/third_party/zlib/uncompr.c', |
| 2295 | + '<(V8_ROOT)/third_party/zlib/zconf.h', |
| 2296 | + '<(V8_ROOT)/third_party/zlib/zlib.h', |
| 2297 | + '<(V8_ROOT)/third_party/zlib/zutil.c', |
| 2298 | + '<(V8_ROOT)/third_party/zlib/zutil.h', |
| 2299 | + '<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.cc', |
| 2300 | + '<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.h', |
| 2301 | + ], |
| 2302 | + }, { |
| 2303 | + # Use system zlib |
| 2304 | + 'direct_dependent_settings': { |
| 2305 | + 'defines': [ 'USE_SYSTEM_ZLIB' ], |
| 2306 | + 'include_dirs': [ |
| 2307 | + '<(V8_ROOT)/third_party/zlib/google', |
| 2308 | + ], |
| 2309 | + }, |
| 2310 | + 'defines': [ 'USE_SYSTEM_ZLIB' ], |
| 2311 | + 'include_dirs': [ |
| 2312 | + '<(V8_ROOT)/third_party/zlib/google', |
| 2313 | + ], |
| 2314 | + 'link_settings': { |
| 2315 | + 'libraries': [ '-lz' ], |
| 2316 | + }, |
| 2317 | + # Still need to build the Google-specific compression utilities |
| 2318 | + 'sources': [ |
| 2319 | + '<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.cc', |
| 2320 | + '<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.h', |
| 2321 | + ], |
2252 | 2322 | }], |
2253 | 2323 | ], |
2254 | | - 'direct_dependent_settings': { |
2255 | | - 'include_dirs': [ |
2256 | | - '<(V8_ROOT)/third_party/zlib', |
2257 | | - '<(V8_ROOT)/third_party/zlib/google', |
2258 | | - ], |
2259 | | - }, |
2260 | | - 'defines': [ 'ZLIB_IMPLEMENTATION' ], |
2261 | | - 'include_dirs': [ |
2262 | | - '<(V8_ROOT)/third_party/zlib', |
2263 | | - '<(V8_ROOT)/third_party/zlib/google', |
2264 | | - ], |
2265 | | - 'sources': [ |
2266 | | - '<(V8_ROOT)/third_party/zlib/adler32.c', |
2267 | | - '<(V8_ROOT)/third_party/zlib/chromeconf.h', |
2268 | | - '<(V8_ROOT)/third_party/zlib/compress.c', |
2269 | | - '<(V8_ROOT)/third_party/zlib/contrib/optimizations/insert_string.h', |
2270 | | - '<(V8_ROOT)/third_party/zlib/contrib/optimizations/insert_string.h', |
2271 | | - '<(V8_ROOT)/third_party/zlib/cpu_features.c', |
2272 | | - '<(V8_ROOT)/third_party/zlib/cpu_features.h', |
2273 | | - '<(V8_ROOT)/third_party/zlib/crc32.c', |
2274 | | - '<(V8_ROOT)/third_party/zlib/crc32.h', |
2275 | | - '<(V8_ROOT)/third_party/zlib/deflate.c', |
2276 | | - '<(V8_ROOT)/third_party/zlib/deflate.h', |
2277 | | - '<(V8_ROOT)/third_party/zlib/gzclose.c', |
2278 | | - '<(V8_ROOT)/third_party/zlib/gzguts.h', |
2279 | | - '<(V8_ROOT)/third_party/zlib/gzlib.c', |
2280 | | - '<(V8_ROOT)/third_party/zlib/gzread.c', |
2281 | | - '<(V8_ROOT)/third_party/zlib/gzwrite.c', |
2282 | | - '<(V8_ROOT)/third_party/zlib/infback.c', |
2283 | | - '<(V8_ROOT)/third_party/zlib/inffast.c', |
2284 | | - '<(V8_ROOT)/third_party/zlib/inffast.h', |
2285 | | - '<(V8_ROOT)/third_party/zlib/inffixed.h', |
2286 | | - '<(V8_ROOT)/third_party/zlib/inflate.c', |
2287 | | - '<(V8_ROOT)/third_party/zlib/inflate.h', |
2288 | | - '<(V8_ROOT)/third_party/zlib/inftrees.c', |
2289 | | - '<(V8_ROOT)/third_party/zlib/inftrees.h', |
2290 | | - '<(V8_ROOT)/third_party/zlib/trees.c', |
2291 | | - '<(V8_ROOT)/third_party/zlib/trees.h', |
2292 | | - '<(V8_ROOT)/third_party/zlib/uncompr.c', |
2293 | | - '<(V8_ROOT)/third_party/zlib/zconf.h', |
2294 | | - '<(V8_ROOT)/third_party/zlib/zlib.h', |
2295 | | - '<(V8_ROOT)/third_party/zlib/zutil.c', |
2296 | | - '<(V8_ROOT)/third_party/zlib/zutil.h', |
2297 | | - '<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.cc', |
2298 | | - '<(V8_ROOT)/third_party/zlib/google/compression_utils_portable.h', |
2299 | | - ], |
2300 | 2324 | }, # v8_zlib |
2301 | 2325 | { |
2302 | 2326 | 'target_name': 'fp16', |
|
0 commit comments