| 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', |
| 9 'type': 'static_library', |
| 10 'conditions': [ |
| 11 # See http://crbug.com/420616 gyp on Mac doesn't seem to apply cflgags |
| 12 ['OS!="mac" and (target_arch=="ia32" or target_arch=="x64")', { |
| 13 'cflags' : ["-msse2", "-msse4.2", "-mpclmul"], |
| 14 'sources' : [ 'crc_folding.c', |
| 15 'fill_window_sse.c'] |
| 16 }, { |
| 17 'sources' : [ 'simd_stub.c' ], |
| 18 }], |
| 19 ], |
| 20 }, |
| 21 { |
| 8 'target_name': 'zlib', | 22 'target_name': 'zlib', |
| 9 'type': 'static_library', | 23 'type': 'static_library', |
| 10 'sources': [ | 24 'sources': [ |
| 11 'adler32.c', | 25 'adler32.c', |
| 12 'compress.c', | 26 'compress.c', |
| 13 'crc32.c', | 27 'crc32.c', |
| 14 'crc32.h', | 28 'crc32.h', |
| 15 'deflate.c', | 29 'deflate.c', |
| 16 'deflate.h', | 30 'deflate.h', |
| 17 'gzclose.c', | 31 'gzclose.c', |
| 18 'gzguts.h', | 32 'gzguts.h', |
| 19 'gzlib.c', | 33 'gzlib.c', |
| 20 'gzread.c', | 34 'gzread.c', |
| 21 'gzwrite.c', | 35 'gzwrite.c', |
| 22 'infback.c', | 36 'infback.c', |
| 23 'inffast.c', | 37 'inffast.c', |
| 24 'inffast.h', | 38 'inffast.h', |
| 25 'inffixed.h', | 39 'inffixed.h', |
| 26 'inflate.c', | 40 'inflate.c', |
| 27 'inflate.h', | 41 'inflate.h', |
| 28 'inftrees.c', | 42 'inftrees.c', |
| 29 'inftrees.h', | 43 'inftrees.h', |
| 30 'mozzconf.h', | 44 'mozzconf.h', |
| 31 'trees.c', | 45 'trees.c', |
| 32 'trees.h', | 46 'trees.h', |
| 33 'uncompr.c', | 47 'uncompr.c', |
| 48 'x86.h', |
| 34 'zconf.h', | 49 'zconf.h', |
| 35 'zlib.h', | 50 'zlib.h', |
| 36 'zutil.c', | 51 'zutil.c', |
| 37 'zutil.h', | 52 'zutil.h', |
| 38 ], | 53 ], |
| 54 'dependencies' : [ |
| 55 'zlib_x86_simd' |
| 56 ], |
| 39 'include_dirs': [ | 57 'include_dirs': [ |
| 40 '.', | 58 '.', |
| 41 ], | 59 ], |
| 42 'direct_dependent_settings': { | 60 'direct_dependent_settings': { |
| 43 'include_dirs': [ | 61 'include_dirs': [ |
| 44 '.', | 62 '.', |
| 45 ], | 63 ], |
| 64 'conditions': [ |
| 65 ['OS!="mac" and (target_arch=="ia32" or target_arch=="x64")', { |
| 66 'defines': [ |
| 67 'ZLIB_X86_SIMD', |
| 68 ], |
| 69 }], |
| 70 ], |
| 46 }, | 71 }, |
| 47 'conditions': [ | 72 'conditions': [ |
| 73 ['OS!="mac" and (target_arch=="ia32" or target_arch=="x64")', { |
| 74 'sources' : [ 'x86.c', ], |
| 75 }], |
| 48 ['OS!="win"', { | 76 ['OS!="win"', { |
| 49 'product_name': 'chrome_zlib', | 77 'product_name': 'chrome_zlib', |
| 50 }], ['OS=="android"', { | 78 }], ['OS=="android"', { |
| 51 'toolsets': ['target', 'host'], | 79 'toolsets': ['target', 'host'], |
| 52 }], | 80 }], |
| 53 ], | 81 ], |
| 54 }, | 82 }, |
| 55 { | 83 { |
| 56 'target_name': 'minizip', | 84 'target_name': 'minizip', |
| 57 'type': 'static_library', | 85 'type': 'static_library', |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 # fseeko64. We use fopen, ftell, and fseek instead on these | 125 # fseeko64. We use fopen, ftell, and fseek instead on these |
| 98 # systems. | 126 # systems. |
| 99 'defines': [ | 127 'defines': [ |
| 100 'USE_FILE32API' | 128 'USE_FILE32API' |
| 101 ], | 129 ], |
| 102 }], | 130 }], |
| 103 ], | 131 ], |
| 104 }, | 132 }, |
| 105 ], | 133 ], |
| 106 } | 134 } |
| OLD | NEW |