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', ],
85 'clang_warning_flags': [
86 '-Wno-incompatible-pointer-types',
91 'product_name': 'chrome_zlib',
92 }], ['OS=="android"', {
93 'toolsets': ['target', 'host'],
98 'target_name': 'minizip',
99 'type': 'static_library',
101 'contrib/minizip/ioapi.c',
102 'contrib/minizip/ioapi.h',
103 'contrib/minizip/iowin32.c',
104 'contrib/minizip/iowin32.h',
105 'contrib/minizip/unzip.c',
106 'contrib/minizip/unzip.h',
107 'contrib/minizip/zip.c',
108 'contrib/minizip/zip.h',
117 'direct_dependent_settings': {
123 'clang_warning_flags': [
124 # zlib uses `if ((a == b))` for some reason.
125 '-Wno-parentheses-equality',
131 'contrib/minizip/iowin32.c'
135 'toolsets': ['target', 'host'],
137 ['OS=="mac" or OS=="ios" or os_bsd==1 or OS=="android"', {
138 # Mac, Android and the BSDs don't have fopen64, ftello64, or
139 # fseeko64. We use fopen, ftell, and fseek instead on these