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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 'crypto.gypi', | 10 'crypto.gypi', |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 'dependencies': [ | 101 'dependencies': [ |
102 '../third_party/boringssl/boringssl.gyp:boringssl', | 102 '../third_party/boringssl/boringssl.gyp:boringssl', |
103 ], | 103 ], |
104 # TODO(joth): Use a glob to match exclude patterns once the | 104 # TODO(joth): Use a glob to match exclude patterns once the |
105 # OpenSSL file set is complete. | 105 # OpenSSL file set is complete. |
106 'sources!': [ | 106 'sources!': [ |
107 'ec_private_key_nss.cc', | 107 'ec_private_key_nss.cc', |
108 'ec_signature_creator_nss.cc', | 108 'ec_signature_creator_nss.cc', |
109 'encryptor_nss.cc', | 109 'encryptor_nss.cc', |
110 'hmac_nss.cc', | 110 'hmac_nss.cc', |
111 'nss_util.cc', | |
112 'nss_util.h', | |
113 'nss_util_internal.h', | |
114 'rsa_private_key_nss.cc', | 111 'rsa_private_key_nss.cc', |
115 'secure_hash_default.cc', | 112 'secure_hash_default.cc', |
116 'signature_creator_nss.cc', | 113 'signature_creator_nss.cc', |
117 'signature_verifier_nss.cc', | 114 'signature_verifier_nss.cc', |
118 'symmetric_key_nss.cc', | 115 'symmetric_key_nss.cc', |
119 'third_party/nss/chromium-blapi.h', | 116 'third_party/nss/chromium-blapi.h', |
120 'third_party/nss/chromium-blapit.h', | 117 'third_party/nss/chromium-blapit.h', |
121 'third_party/nss/chromium-nss.h', | 118 'third_party/nss/chromium-nss.h', |
122 'third_party/nss/chromium-prtypes.h', | 119 'third_party/nss/chromium-prtypes.h', |
123 'third_party/nss/chromium-sha256.h', | 120 'third_party/nss/chromium-sha256.h', |
(...skipping 12 matching lines...) Expand all Loading... |
136 'openssl_bio_string.h', | 133 'openssl_bio_string.h', |
137 'openssl_util.cc', | 134 'openssl_util.cc', |
138 'openssl_util.h', | 135 'openssl_util.h', |
139 'rsa_private_key_openssl.cc', | 136 'rsa_private_key_openssl.cc', |
140 'secure_hash_openssl.cc', | 137 'secure_hash_openssl.cc', |
141 'signature_creator_openssl.cc', | 138 'signature_creator_openssl.cc', |
142 'signature_verifier_openssl.cc', | 139 'signature_verifier_openssl.cc', |
143 'symmetric_key_openssl.cc', | 140 'symmetric_key_openssl.cc', |
144 ], | 141 ], |
145 },], | 142 },], |
| 143 [ 'use_openssl==1 and use_nss_certs==0', { |
| 144 # NSS is used for neither the internal crypto library nor the |
| 145 # platform certificate library. |
| 146 'sources!': [ |
| 147 'nss_util.cc', |
| 148 'nss_util.h', |
| 149 'nss_util_internal.h', |
| 150 ], |
| 151 },], |
146 ], | 152 ], |
147 'sources': [ | 153 'sources': [ |
148 '<@(crypto_sources)', | 154 '<@(crypto_sources)', |
149 ], | 155 ], |
150 }, | 156 }, |
151 { | 157 { |
152 'target_name': 'crypto_unittests', | 158 'target_name': 'crypto_unittests', |
153 'type': 'executable', | 159 'type': 'executable', |
154 'sources': [ | 160 'sources': [ |
155 'curve25519_unittest.cc', | 161 'curve25519_unittest.cc', |
(...skipping 19 matching lines...) Expand all Loading... |
175 'dependencies': [ | 181 'dependencies': [ |
176 'crypto', | 182 'crypto', |
177 'crypto_test_support', | 183 'crypto_test_support', |
178 '../base/base.gyp:base', | 184 '../base/base.gyp:base', |
179 '../base/base.gyp:run_all_unittests', | 185 '../base/base.gyp:run_all_unittests', |
180 '../base/base.gyp:test_support_base', | 186 '../base/base.gyp:test_support_base', |
181 '../testing/gmock.gyp:gmock', | 187 '../testing/gmock.gyp:gmock', |
182 '../testing/gtest.gyp:gtest', | 188 '../testing/gtest.gyp:gtest', |
183 ], | 189 ], |
184 'conditions': [ | 190 'conditions': [ |
185 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { | 191 [ 'use_nss_certs == 1', { |
186 'conditions': [ | 192 'conditions': [ |
187 [ 'use_allocator!="none"', { | 193 [ 'use_allocator!="none"', { |
188 'dependencies': [ | 194 'dependencies': [ |
189 '../base/allocator/allocator.gyp:allocator', | 195 '../base/allocator/allocator.gyp:allocator', |
190 ], | 196 ], |
191 }, | 197 }, |
192 ], | 198 ], |
193 ], | 199 ], |
194 'dependencies': [ | 200 'dependencies': [ |
195 '../build/linux/system.gyp:ssl', | 201 '../build/linux/system.gyp:ssl', |
196 ], | 202 ], |
197 }, { # os_posix != 1 or OS == "mac" or OS == "android" or OS == "ios" | 203 }], |
| 204 [ 'use_openssl == 1 and use_nss_certs == 0', { |
| 205 # nss_util is built if NSS is used for either the internal crypto |
| 206 # library or the platform certificate library. |
198 'sources!': [ | 207 'sources!': [ |
199 'rsa_private_key_nss_unittest.cc', | 208 'nss_util_unittest.cc', |
200 ] | 209 ], |
201 }], | 210 }], |
202 [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', { | 211 [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', { |
203 'dependencies': [ | 212 'dependencies': [ |
204 '../third_party/nss/nss.gyp:nspr', | 213 '../third_party/nss/nss.gyp:nspr', |
205 ], | 214 ], |
206 }], | 215 }], |
207 [ 'OS == "win"', { | 216 [ 'OS == "win"', { |
208 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 217 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
209 'msvs_disabled_warnings': [4267, ], | 218 'msvs_disabled_warnings': [4267, ], |
210 }], | 219 }], |
211 [ 'use_openssl==1', { | 220 [ 'use_openssl==1', { |
212 'dependencies': [ | 221 'dependencies': [ |
213 '../third_party/boringssl/boringssl.gyp:boringssl', | 222 '../third_party/boringssl/boringssl.gyp:boringssl', |
214 ], | 223 ], |
215 'sources!': [ | 224 'sources!': [ |
216 'nss_util_unittest.cc', | |
217 'rsa_private_key_nss_unittest.cc', | 225 'rsa_private_key_nss_unittest.cc', |
218 ], | 226 ], |
219 }, { | 227 }, { |
220 'sources!': [ | 228 'sources!': [ |
221 'openssl_bio_string_unittest.cc', | 229 'openssl_bio_string_unittest.cc', |
222 ], | 230 ], |
223 }], | 231 }], |
224 ], | 232 ], |
225 }, | 233 }, |
226 ], | 234 ], |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 '../build/isolate.gypi', | 317 '../build/isolate.gypi', |
310 ], | 318 ], |
311 'sources': [ | 319 'sources': [ |
312 'crypto_unittests.isolate', | 320 'crypto_unittests.isolate', |
313 ], | 321 ], |
314 }, | 322 }, |
315 ], | 323 ], |
316 }], | 324 }], |
317 ], | 325 ], |
318 } | 326 } |
OLD | NEW |