OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 [ 'os_posix == 1 and OS != "mac" and OS != "openbsd"', { | 8 [ 'os_posix == 1 and OS != "mac" and OS != "openbsd"', { |
9 # Link to system .so since we already use it due to GTK. | 9 # Link to system .so since we already use it due to GTK. |
10 # TODO(pvalchev): OpenBSD is purposefully left out, as the system | 10 # TODO(pvalchev): OpenBSD is purposefully left out, as the system |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 '.', | 64 '.', |
65 ], | 65 ], |
66 }, | 66 }, |
67 'conditions': [ | 67 'conditions': [ |
68 ['OS!="win"', { | 68 ['OS!="win"', { |
69 'product_name': 'chrome_zlib', | 69 'product_name': 'chrome_zlib', |
70 'sources!': [ | 70 'sources!': [ |
71 'contrib/minizip/iowin32.c' | 71 'contrib/minizip/iowin32.c' |
72 ], | 72 ], |
73 }], | 73 }], |
| 74 ['OS=="mac"', { |
| 75 # Mac does not have fopen64, ftello64, or fseeko64. We use fopen, |
| 76 # ftell, and fseek instead on Mac. |
| 77 'defines': [ |
| 78 'USE_FILE32API' |
| 79 ], |
| 80 }], |
74 ], | 81 ], |
75 }, | 82 }, |
76 ], | 83 ], |
77 }, { | 84 }, { |
78 'targets': [ | 85 'targets': [ |
79 { | 86 { |
80 'target_name': 'zlib', | 87 'target_name': 'zlib', |
81 'type': 'static_library', | 88 'type': 'static_library', |
82 'direct_dependent_settings': { | 89 'direct_dependent_settings': { |
83 'defines': [ | 90 'defines': [ |
(...skipping 19 matching lines...) Expand all Loading... |
103 'link_settings': { | 110 'link_settings': { |
104 'libraries': [ | 111 'libraries': [ |
105 '-lz', | 112 '-lz', |
106 ], | 113 ], |
107 }, | 114 }, |
108 }, | 115 }, |
109 ], | 116 ], |
110 }], | 117 }], |
111 ], | 118 ], |
112 } | 119 } |
OLD | NEW |