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 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'crypto', | 11 'target_name': 'crypto', |
12 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto | 12 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto |
13 'type': 'static_library', | 13 'type': 'static_library', |
14 'dependencies': [ | 14 'dependencies': [ |
15 '../base/base.gyp:base', | 15 '../base/base.gyp:base', |
16 ], | 16 ], |
17 'msvs_disabled_warnings': [ | 17 'msvs_disabled_warnings': [ |
18 4018, | 18 4018, |
19 ], | 19 ], |
20 'conditions': [ | 20 'conditions': [ |
21 [ 'os_posix == 1 and OS != "mac"', { | 21 [ 'os_posix == 1 and OS != "mac"', { |
22 'dependencies': [ | |
23 '../build/linux/system.gyp:ssl', | |
24 ], | |
25 'export_dependent_settings': [ | |
26 '../build/linux/system.gyp:ssl', | |
27 ], | |
28 'conditions': [ | 22 'conditions': [ |
29 [ 'chromeos==1', { | 23 [ 'chromeos==1', { |
30 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 24 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
31 }, | 25 }, |
32 ], | 26 ], |
| 27 [ 'use_openssl==1', { |
| 28 'dependencies': [ |
| 29 '../third_party/openssl/openssl.gyp:openssl', |
| 30 ], |
| 31 }, { # use_openssl==0 |
| 32 'dependencies': [ |
| 33 '../build/linux/system.gyp:nss', |
| 34 ], |
| 35 'export_dependent_settings': [ |
| 36 '../build/linux/system.gyp:nss', |
| 37 ], |
| 38 } |
| 39 ], |
33 ], | 40 ], |
34 }, { # os_posix != 1 or OS == "mac" | 41 }, { # os_posix != 1 or OS == "mac" |
35 'sources/': [ | 42 'sources/': [ |
36 ['exclude', '_nss\.cc$'], | 43 ['exclude', '_nss\.cc$'], |
37 ], | 44 ], |
38 }], | 45 }], |
39 [ 'OS == "freebsd" or OS == "openbsd"', { | 46 [ 'OS == "freebsd" or OS == "openbsd"', { |
40 'link_settings': { | 47 'link_settings': { |
41 'libraries': [ | 48 'libraries': [ |
42 '-L/usr/local/lib -lexecinfo', | 49 '-L/usr/local/lib -lexecinfo', |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 [ 'os_posix == 1 and OS != "mac"', { | 195 [ 'os_posix == 1 and OS != "mac"', { |
189 'conditions': [ | 196 'conditions': [ |
190 [ 'linux_use_tcmalloc==1', { | 197 [ 'linux_use_tcmalloc==1', { |
191 'dependencies': [ | 198 'dependencies': [ |
192 '../base/allocator/allocator.gyp:allocator', | 199 '../base/allocator/allocator.gyp:allocator', |
193 ], | 200 ], |
194 }, | 201 }, |
195 ], | 202 ], |
196 ], | 203 ], |
197 'dependencies': [ | 204 'dependencies': [ |
198 '../build/linux/system.gyp:ssl', | 205 '../build/linux/system.gyp:nss', |
199 ], | 206 ], |
200 }, { # os_posix != 1 or OS == "mac" | 207 }, { # os_posix != 1 or OS == "mac" |
201 'sources!': [ | 208 'sources!': [ |
202 'rsa_private_key_nss_unittest.cc', | 209 'rsa_private_key_nss_unittest.cc', |
203 ] | 210 ] |
204 }], | 211 }], |
205 [ 'OS == "mac" or OS == "win"', { | 212 [ 'OS == "mac" or OS == "win"', { |
206 'dependencies': [ | 213 'dependencies': [ |
207 '../third_party/nss/nss.gyp:nss', | 214 '../third_party/nss/nss.gyp:nss', |
208 ], | 215 ], |
209 }], | 216 }], |
210 [ 'use_openssl==1', { | 217 [ 'use_openssl==1', { |
211 'sources!': [ | 218 'sources!': [ |
212 'rsa_private_key_nss_unittest.cc', | 219 'rsa_private_key_nss_unittest.cc', |
213 ], | 220 ], |
214 }], | 221 }], |
215 ], | 222 ], |
216 }, | 223 }, |
217 ], | 224 ], |
218 } | 225 } |
OLD | NEW |