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 'type': '<(component)', | |
13 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto | 12 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto |
14 'dependencies': [ | 13 'dependencies': [ |
15 '../base/base.gyp:base', | 14 '../base/base.gyp:base', |
16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 15 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
17 ], | 16 ], |
18 'msvs_disabled_warnings': [ | 17 'msvs_disabled_warnings': [ |
19 4018, | 18 4018, |
20 ], | 19 ], |
21 'conditions': [ | 20 'conditions': [ |
22 [ 'os_posix == 1 and OS != "mac"', { | 21 [ 'os_posix == 1 and OS != "mac"', { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 'mac_security_services_lock.cc', | 60 'mac_security_services_lock.cc', |
62 'mac_security_services_lock.h', | 61 'mac_security_services_lock.h', |
63 ], | 62 ], |
64 }], | 63 }], |
65 [ 'OS == "mac" or OS == "win"', { | 64 [ 'OS == "mac" or OS == "win"', { |
66 'dependencies': [ | 65 'dependencies': [ |
67 '../third_party/nss/nss.gyp:nspr', | 66 '../third_party/nss/nss.gyp:nspr', |
68 '../third_party/nss/nss.gyp:nss', | 67 '../third_party/nss/nss.gyp:nss', |
69 ], | 68 ], |
70 }], | 69 }], |
71 [ 'OS != "win"', { | 70 [ 'OS == "win"', { |
| 71 'type': '<(component)', |
| 72 }, { # else OS != "win" |
| 73 'type': 'static_library', |
72 'sources!': [ | 74 'sources!': [ |
73 'capi_util.h', | 75 'capi_util.h', |
74 'capi_util.cc', | 76 'capi_util.cc', |
75 ], | 77 ], |
76 }], | 78 }], |
77 [ 'component == "shared_library"', { | 79 [ 'OS == "win" and component == "shared_library"', { |
78 'defines': [ | 80 'defines': [ |
79 'CRYPTO_IMPLEMENTATION', | 81 'CRYPTO_IMPLEMENTATION', |
80 ], | 82 ], |
81 }], | 83 }], |
82 [ 'use_openssl==1', { | 84 [ 'use_openssl==1', { |
83 # TODO(joth): Use a glob to match exclude patterns once the | 85 # TODO(joth): Use a glob to match exclude patterns once the |
84 # OpenSSL file set is complete. | 86 # OpenSSL file set is complete. |
85 'sources!': [ | 87 'sources!': [ |
86 'encryptor_nss.cc', | 88 'encryptor_nss.cc', |
87 'hmac_nss.cc', | 89 'hmac_nss.cc', |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 [ 'use_openssl==1', { | 229 [ 'use_openssl==1', { |
228 'sources!': [ | 230 'sources!': [ |
229 'openpgp_symmetric_encryption_unittest.cc', | 231 'openpgp_symmetric_encryption_unittest.cc', |
230 'rsa_private_key_nss_unittest.cc', | 232 'rsa_private_key_nss_unittest.cc', |
231 ], | 233 ], |
232 }], | 234 }], |
233 ], | 235 ], |
234 }, | 236 }, |
235 ], | 237 ], |
236 } | 238 } |
OLD | NEW |