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 # Put all transitive dependencies for Windows HMAC here. | |
9 # This is required so that we can build them for nacl win64. | |
10 'hmac_win64_related_sources': [ | |
11 'hmac.cc', | |
12 'hmac.h', | |
13 'hmac_win.cc', | |
14 'secure_util.cc', | |
15 'secure_util.h', | |
16 'symmetric_key.h', | |
17 'symmetric_key_win.cc', | |
18 'third_party/nss/chromium-sha256.h', | |
19 'third_party/nss/sha512.cc', | |
20 ], | |
21 }, | 8 }, |
| 9 'includes': [ |
| 10 'crypto.gypi', |
| 11 ], |
22 'targets': [ | 12 'targets': [ |
23 { | 13 { |
24 'target_name': 'crypto', | 14 'target_name': 'crypto', |
25 'type': '<(component)', | 15 'type': '<(component)', |
26 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto | 16 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto |
27 'dependencies': [ | 17 'dependencies': [ |
28 '../base/base.gyp:base', | 18 '../base/base.gyp:base', |
29 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
30 ], | 20 ], |
31 'defines': [ | 21 'defines': [ |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 'openssl_util.h', | 146 'openssl_util.h', |
157 'rsa_private_key_openssl.cc', | 147 'rsa_private_key_openssl.cc', |
158 'secure_hash_openssl.cc', | 148 'secure_hash_openssl.cc', |
159 'signature_creator_openssl.cc', | 149 'signature_creator_openssl.cc', |
160 'signature_verifier_openssl.cc', | 150 'signature_verifier_openssl.cc', |
161 'symmetric_key_openssl.cc', | 151 'symmetric_key_openssl.cc', |
162 ], | 152 ], |
163 },], | 153 },], |
164 ], | 154 ], |
165 'sources': [ | 155 'sources': [ |
166 # NOTE: all transitive dependencies of HMAC on windows need | 156 '<@(crypto_sources)', |
167 # to be placed in the source list above. | |
168 '<@(hmac_win64_related_sources)', | |
169 'apple_keychain.h', | |
170 'apple_keychain_ios.mm', | |
171 'apple_keychain_mac.mm', | |
172 'capi_util.cc', | |
173 'capi_util.h', | |
174 'crypto_export.h', | |
175 'cssm_init.cc', | |
176 'cssm_init.h', | |
177 'curve25519.cc', | |
178 'curve25519.h', | |
179 'curve25519-donna.c', | |
180 'ghash.cc', | |
181 'ghash.h', | |
182 'ec_private_key.h', | |
183 'ec_private_key_nss.cc', | |
184 'ec_private_key_openssl.cc', | |
185 'ec_signature_creator.cc', | |
186 'ec_signature_creator.h', | |
187 'ec_signature_creator_impl.h', | |
188 'ec_signature_creator_nss.cc', | |
189 'ec_signature_creator_openssl.cc', | |
190 'encryptor.cc', | |
191 'encryptor.h', | |
192 'encryptor_nss.cc', | |
193 'encryptor_openssl.cc', | |
194 'hkdf.cc', | |
195 'hkdf.h', | |
196 'hmac_nss.cc', | |
197 'hmac_openssl.cc', | |
198 'mac_security_services_lock.cc', | |
199 'mac_security_services_lock.h', | |
200 'mock_apple_keychain.cc', | |
201 'mock_apple_keychain.h', | |
202 'mock_apple_keychain_ios.cc', | |
203 'mock_apple_keychain_mac.cc', | |
204 'p224_spake.cc', | |
205 'p224_spake.h', | |
206 'nss_crypto_module_delegate.h', | |
207 'nss_util.cc', | |
208 'nss_util.h', | |
209 'nss_util_internal.h', | |
210 'openpgp_symmetric_encryption.cc', | |
211 'openpgp_symmetric_encryption.h', | |
212 'openssl_util.cc', | |
213 'openssl_util.h', | |
214 'p224.cc', | |
215 'p224.h', | |
216 'random.h', | |
217 'random.cc', | |
218 'rsa_private_key.cc', | |
219 'rsa_private_key.h', | |
220 'rsa_private_key_nss.cc', | |
221 'rsa_private_key_openssl.cc', | |
222 'scoped_capi_types.h', | |
223 'scoped_nss_types.h', | |
224 'secure_hash.h', | |
225 'secure_hash_default.cc', | |
226 'secure_hash_openssl.cc', | |
227 'sha2.cc', | |
228 'sha2.h', | |
229 'signature_creator.h', | |
230 'signature_creator_nss.cc', | |
231 'signature_creator_openssl.cc', | |
232 'signature_verifier.h', | |
233 'signature_verifier_nss.cc', | |
234 'signature_verifier_openssl.cc', | |
235 'symmetric_key_nss.cc', | |
236 'symmetric_key_openssl.cc', | |
237 'third_party/nss/chromium-blapi.h', | |
238 'third_party/nss/chromium-blapit.h', | |
239 'third_party/nss/chromium-nss.h', | |
240 'third_party/nss/pk11akey.cc', | |
241 'third_party/nss/rsawrapr.c', | |
242 'third_party/nss/secsign.cc', | |
243 ], | 157 ], |
244 }, | 158 }, |
245 { | 159 { |
246 'target_name': 'crypto_unittests', | 160 'target_name': 'crypto_unittests', |
247 'type': 'executable', | 161 'type': 'executable', |
248 'sources': [ | 162 'sources': [ |
249 'curve25519_unittest.cc', | 163 'curve25519_unittest.cc', |
250 'ec_private_key_unittest.cc', | 164 'ec_private_key_unittest.cc', |
251 'ec_signature_creator_unittest.cc', | 165 'ec_signature_creator_unittest.cc', |
252 'encryptor_unittest.cc', | 166 'encryptor_unittest.cc', |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 'configurations': { | 258 'configurations': { |
345 'Common_Base': { | 259 'Common_Base': { |
346 'msvs_target_platform': 'x64', | 260 'msvs_target_platform': 'x64', |
347 }, | 261 }, |
348 }, | 262 }, |
349 }, | 263 }, |
350 ], | 264 ], |
351 }], | 265 }], |
352 ], | 266 ], |
353 } | 267 } |
OLD | NEW |