1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 'target_name' : 'zlib_x86_simd',
9 'type': 'static_library',
11 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
12 'cflags' : ['-msse4.2', '-mpclmul'],
14 'OTHER_CFLAGS' : ['-msse4.2', '-mpclmul'],
21 ['OS=="win" and clang==1', {
24 'AdditionalOptions': [ '-msse4.2', '-mpclmul' ],
30 'sources' : [ 'simd_stub.c' ],
33 'toolsets': ['target', 'host'],
38 'target_name': 'zlib',
39 'type': 'static_library',
76 'direct_dependent_settings': {
82 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
83 'sources' : [ 'x86.c', ],
86 'product_name': 'chrome_zlib',
87 }], ['OS=="android"', {
88 'toolsets': ['target', 'host'],
93 'target_name': 'minizip',
94 'type': 'static_library',
96 'contrib/minizip/ioapi.c',
97 'contrib/minizip/ioapi.h',
98 'contrib/minizip/iowin32.c',
99 'contrib/minizip/iowin32.h',
100 'contrib/minizip/unzip.c',
101 'contrib/minizip/unzip.h',
102 'contrib/minizip/zip.c',
103 'contrib/minizip/zip.h',
112 'direct_dependent_settings': {
118 'clang_warning_flags': [
119 # zlib uses `if ((a == b))` for some reason.
120 '-Wno-parentheses-equality',
126 'contrib/minizip/iowin32.c'
130 'toolsets': ['target', 'host'],
132 ['OS=="mac" or OS=="ios" or os_bsd==1 or OS=="android"', {
133 # Mac, Android and the BSDs don't have fopen64, ftello64, or
134 # fseeko64. We use fopen, ftell, and fseek instead on these