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 == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris
"', { | 21 [ 'os_posix == 1 and OS != "mac"', { |
22 'conditions': [ | 22 'conditions': [ |
23 [ 'chromeos==1', { | 23 [ 'chromeos==1', { |
24 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 24 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
25 }, | 25 }, |
26 ], | 26 ], |
27 [ 'use_openssl==1', { | 27 [ 'use_openssl==1', { |
28 'dependencies': [ | 28 'dependencies': [ |
29 '../third_party/openssl/openssl.gyp:openssl', | 29 '../third_party/openssl/openssl.gyp:openssl', |
30 ], | 30 ], |
31 }, { # use_openssl==0 | 31 }, { # use_openssl==0 |
32 'dependencies': [ | 32 'dependencies': [ |
33 '../build/linux/system.gyp:nss', | 33 '../build/linux/system.gyp:nss', |
34 ], | 34 ], |
35 'export_dependent_settings': [ | 35 'export_dependent_settings': [ |
36 '../build/linux/system.gyp:nss', | 36 '../build/linux/system.gyp:nss', |
37 ], | 37 ], |
38 } | 38 } |
39 ], | 39 ], |
40 ], | 40 ], |
41 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS !=
"solaris" | 41 }, { # os_posix != 1 or OS == "mac" |
42 'sources/': [ | 42 'sources/': [ |
43 ['exclude', '_nss\.cc$'], | 43 ['exclude', '_nss\.cc$'], |
44 ], | 44 ], |
45 }], | 45 }], |
46 [ 'OS == "freebsd" or OS == "openbsd"', { | 46 [ 'OS == "freebsd" or OS == "openbsd"', { |
47 'link_settings': { | 47 'link_settings': { |
48 'libraries': [ | 48 'libraries': [ |
49 '-L/usr/local/lib -lexecinfo', | 49 '-L/usr/local/lib -lexecinfo', |
50 ], | 50 ], |
51 }, | 51 }, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 'symmetric_key_unittest.cc', | 185 'symmetric_key_unittest.cc', |
186 ], | 186 ], |
187 'dependencies': [ | 187 'dependencies': [ |
188 'crypto', | 188 'crypto', |
189 '../base/base.gyp:base', | 189 '../base/base.gyp:base', |
190 '../base/base.gyp:test_support_base', | 190 '../base/base.gyp:test_support_base', |
191 '../testing/gmock.gyp:gmock', | 191 '../testing/gmock.gyp:gmock', |
192 '../testing/gtest.gyp:gtest', | 192 '../testing/gtest.gyp:gtest', |
193 ], | 193 ], |
194 'conditions': [ | 194 'conditions': [ |
195 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris
"', { | 195 [ 'os_posix == 1 and OS != "mac"', { |
196 'conditions': [ | 196 'conditions': [ |
197 [ 'linux_use_tcmalloc==1', { | 197 [ 'linux_use_tcmalloc==1', { |
198 'dependencies': [ | 198 'dependencies': [ |
199 '../base/allocator/allocator.gyp:allocator', | 199 '../base/allocator/allocator.gyp:allocator', |
200 ], | 200 ], |
201 }, | 201 }, |
202 ], | 202 ], |
203 ], | 203 ], |
204 'dependencies': [ | 204 'dependencies': [ |
205 '../build/linux/system.gyp:nss', | 205 '../build/linux/system.gyp:nss', |
206 ], | 206 ], |
207 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS !=
"solaris" | 207 }, { # os_posix != 1 or OS == "mac" |
208 'sources!': [ | 208 'sources!': [ |
209 'rsa_private_key_nss_unittest.cc', | 209 'rsa_private_key_nss_unittest.cc', |
210 ] | 210 ] |
211 }], | 211 }], |
212 [ 'OS == "mac" or OS == "win"', { | 212 [ 'OS == "mac" or OS == "win"', { |
213 'dependencies': [ | 213 'dependencies': [ |
214 '../third_party/nss/nss.gyp:nss', | 214 '../third_party/nss/nss.gyp:nss', |
215 ], | 215 ], |
216 }], | 216 }], |
217 [ 'use_openssl==1', { | 217 [ 'use_openssl==1', { |
218 'sources!': [ | 218 'sources!': [ |
219 'rsa_private_key_nss_unittest.cc', | 219 'rsa_private_key_nss_unittest.cc', |
220 ], | 220 ], |
221 }], | 221 }], |
222 ], | 222 ], |
223 }, | 223 }, |
224 ], | 224 ], |
225 } | 225 } |
OLD | NEW |