| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name' : 'zlib_x86_simd', | 8 'target_name' : 'zlib_x86_simd', |
| 9 'type': 'static_library', | 9 'type': 'static_library', |
| 10 'conditions': [ | 10 'conditions': [ |
| 11 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { | 11 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { |
| 12 'cflags' : ["-msse2", "-msse4.2", "-mpclmul"], | 12 'cflags' : ['-msse4.2', '-mpclmul'], |
| 13 'xcode_settings' : { | 13 'xcode_settings' : { |
| 14 'OTHER_CFLAGS' : ["-msse4.2", "-mpclmul"], | 14 'OTHER_CFLAGS' : ['-msse4.2', '-mpclmul'], |
| 15 }, | 15 }, |
| 16 'sources' : [ 'crc_folding.c', | 16 'sources' : [ |
| 17 'fill_window_sse.c'] | 17 'crc_folding.c', |
| 18 'fill_window_sse.c', |
| 19 ], |
| 20 'conditions': [ |
| 21 ['OS=="win" and clang==1', { |
| 22 'msvs_settings': { |
| 23 'VCCLCompilerTool': { |
| 24 'AdditionalOptions': [ '-msse4.2', '-mpclmul' ], |
| 25 }, |
| 26 }, |
| 27 }], |
| 28 ], |
| 18 }, { | 29 }, { |
| 19 'sources' : [ 'simd_stub.c' ], | 30 'sources' : [ 'simd_stub.c' ], |
| 20 }], ['OS=="android"', { | 31 }], |
| 32 ['OS=="android"', { |
| 21 'toolsets': ['target', 'host'], | 33 'toolsets': ['target', 'host'], |
| 22 }], | 34 }], |
| 23 ], | 35 ], |
| 24 }, | 36 }, |
| 25 { | 37 { |
| 26 'target_name': 'zlib', | 38 'target_name': 'zlib', |
| 27 'type': 'static_library', | 39 'type': 'static_library', |
| 28 'sources': [ | 40 'sources': [ |
| 29 'adler32.c', | 41 'adler32.c', |
| 30 'compress.c', | 42 'compress.c', |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 # fseeko64. We use fopen, ftell, and fseek instead on these | 134 # fseeko64. We use fopen, ftell, and fseek instead on these |
| 123 # systems. | 135 # systems. |
| 124 'defines': [ | 136 'defines': [ |
| 125 'USE_FILE32API' | 137 'USE_FILE32API' |
| 126 ], | 138 ], |
| 127 }], | 139 }], |
| 128 ], | 140 ], |
| 129 }, | 141 }, |
| 130 ], | 142 ], |
| 131 } | 143 } |
| OLD | NEW |