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 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
6 # for details. All rights reserved. Use of this source code is governed by a | 6 # for details. All rights reserved. Use of this source code is governed by a |
7 # BSD-style license that can be found in the LICENSE file. | 7 # BSD-style license that can be found in the LICENSE file. |
8 | 8 |
9 # This file is a modified copy of src/third_party/zlib/zlib.gyp from Chromium. | 9 # This file is a modified copy of src/third_party/zlib/zlib.gyp from Chromium. |
10 # Revision 232552 (this should agree with "nss_rev" in DEPS). | 10 # Revision 232552 (this should agree with "nss_rev" in DEPS). |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 '<(zlib_path)/.', | 59 '<(zlib_path)/.', |
60 ], | 60 ], |
61 'direct_dependent_settings': { | 61 'direct_dependent_settings': { |
62 'include_dirs': [ | 62 'include_dirs': [ |
63 '<(zlib_path)/.', | 63 '<(zlib_path)/.', |
64 ], | 64 ], |
65 }, | 65 }, |
66 'conditions': [ | 66 'conditions': [ |
67 ['OS!="win"', { | 67 ['OS!="win"', { |
68 'product_name': 'chrome_zlib', | 68 'product_name': 'chrome_zlib', |
69 }], ['OS=="android"', { | |
70 'toolsets': ['target', 'host'], | |
71 }], | |
72 ], | |
73 }, | |
74 { | |
75 'target_name': 'minizip_dart', # Added by Dart (the _dart postfix) | |
76 'type': 'static_library', | |
77 'sources': [ | |
78 '<(zlib_path)/contrib/minizip/ioapi.c', | |
79 '<(zlib_path)/contrib/minizip/ioapi.h', | |
80 '<(zlib_path)/contrib/minizip/iowin32.c', | |
81 '<(zlib_path)/contrib/minizip/iowin32.h', | |
82 '<(zlib_path)/contrib/minizip/unzip.c', | |
83 '<(zlib_path)/contrib/minizip/unzip.h', | |
84 '<(zlib_path)/contrib/minizip/zip.c', | |
85 '<(zlib_path)/contrib/minizip/zip.h', | |
86 ], | |
87 'dependencies': [ | |
88 'zlib_dart', | |
89 ], | |
90 'include_dirs': [ | |
91 '<(zlib_path)/.', | |
92 '<(zlib_path)/../..', | |
93 ], | |
94 'direct_dependent_settings': { | |
95 'include_dirs': [ | |
96 '<(zlib_path)/.', | |
97 ], | |
98 }, | |
99 'conditions': [ | |
100 ['OS!="win"', { | |
101 'sources!': [ | |
102 '<(zlib_path)/contrib/minizip/iowin32.c' | |
103 ], | |
104 }], | |
105 ['OS=="android"', { | |
106 'toolsets': ['target', 'host'], | |
107 }], | |
108 ['OS=="mac" or OS=="ios" or os_bsd==1 or OS=="android"', { | |
109 # Mac, Android and the BSDs don't have fopen64, ftello64, or | |
110 # fseeko64. We use fopen, ftell, and fseek instead on these | |
111 # systems. | |
112 'defines': [ | |
113 'USE_FILE32API' | |
114 ], | |
115 }], | |
116 ['clang==1', { | |
117 'xcode_settings': { | |
118 'WARNING_CFLAGS': [ | |
119 # zlib uses `if ((a == b))` for some reason. | |
120 '-Wno-parentheses-equality', | |
121 ], | |
122 }, | |
123 'cflags': [ | |
124 '-Wno-parentheses-equality', | |
125 ], | |
126 }], | 69 }], |
127 ], | 70 ], |
128 }, | 71 }, |
129 ], | 72 ], |
130 }]], | 73 }]], |
131 } | 74 } |
OLD | NEW |