| 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 & ios doesn't apply cflags |
| 12 ['OS!="ios" and 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 }], ['OS=="android"', { |
| 19 'toolsets': ['target', 'host'], |
| 20 }], |
| 21 ], |
| 22 }, |
| 23 { |
| 8 'target_name': 'zlib', | 24 'target_name': 'zlib', |
| 9 'type': 'static_library', | 25 'type': 'static_library', |
| 10 'sources': [ | 26 'sources': [ |
| 11 'adler32.c', | 27 'adler32.c', |
| 12 'compress.c', | 28 'compress.c', |
| 13 'crc32.c', | 29 'crc32.c', |
| 14 'crc32.h', | 30 'crc32.h', |
| 15 'deflate.c', | 31 'deflate.c', |
| 16 'deflate.h', | 32 'deflate.h', |
| 17 'gzclose.c', | 33 'gzclose.c', |
| 18 'gzguts.h', | 34 'gzguts.h', |
| 19 'gzlib.c', | 35 'gzlib.c', |
| 20 'gzread.c', | 36 'gzread.c', |
| 21 'gzwrite.c', | 37 'gzwrite.c', |
| 22 'infback.c', | 38 'infback.c', |
| 23 'inffast.c', | 39 'inffast.c', |
| 24 'inffast.h', | 40 'inffast.h', |
| 25 'inffixed.h', | 41 'inffixed.h', |
| 26 'inflate.c', | 42 'inflate.c', |
| 27 'inflate.h', | 43 'inflate.h', |
| 28 'inftrees.c', | 44 'inftrees.c', |
| 29 'inftrees.h', | 45 'inftrees.h', |
| 30 'mozzconf.h', | 46 'mozzconf.h', |
| 31 'trees.c', | 47 'trees.c', |
| 32 'trees.h', | 48 'trees.h', |
| 33 'uncompr.c', | 49 'uncompr.c', |
| 50 'x86.h', |
| 34 'zconf.h', | 51 'zconf.h', |
| 35 'zlib.h', | 52 'zlib.h', |
| 36 'zutil.c', | 53 'zutil.c', |
| 37 'zutil.h', | 54 'zutil.h', |
| 38 ], | 55 ], |
| 56 'dependencies' : [ |
| 57 'zlib_x86_simd' |
| 58 ], |
| 39 'include_dirs': [ | 59 'include_dirs': [ |
| 40 '.', | 60 '.', |
| 41 ], | 61 ], |
| 42 'direct_dependent_settings': { | 62 'direct_dependent_settings': { |
| 43 'include_dirs': [ | 63 'include_dirs': [ |
| 44 '.', | 64 '.', |
| 45 ], | 65 ], |
| 46 }, | 66 }, |
| 47 'conditions': [ | 67 'conditions': [ |
| 68 ['OS!="ios" and OS!="mac" and (target_arch=="ia32" or target_arch=="x64"
)', { |
| 69 'sources' : [ 'x86.c', ], |
| 70 }], |
| 48 ['OS!="win"', { | 71 ['OS!="win"', { |
| 49 'product_name': 'chrome_zlib', | 72 'product_name': 'chrome_zlib', |
| 50 }], ['OS=="android"', { | 73 }], ['OS=="android"', { |
| 51 'toolsets': ['target', 'host'], | 74 'toolsets': ['target', 'host'], |
| 52 }], | 75 }], |
| 53 ], | 76 ], |
| 54 }, | 77 }, |
| 55 { | 78 { |
| 56 'target_name': 'minizip', | 79 'target_name': 'minizip', |
| 57 'type': 'static_library', | 80 '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 | 120 # fseeko64. We use fopen, ftell, and fseek instead on these |
| 98 # systems. | 121 # systems. |
| 99 'defines': [ | 122 'defines': [ |
| 100 'USE_FILE32API' | 123 'USE_FILE32API' |
| 101 ], | 124 ], |
| 102 }], | 125 }], |
| 103 ], | 126 ], |
| 104 }, | 127 }, |
| 105 ], | 128 ], |
| 106 } | 129 } |
| OLD | NEW |