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. | 8 # Put all transitive dependencies for Windows HMAC here. |
9 # This is required so that we can build them for nacl win64. | 9 # This is required so that we can build them for nacl win64. |
10 'hmac_win64_related_sources': [ | 10 'hmac_win64_related_sources': [ |
11 'hmac.cc', | 11 'hmac.cc', |
12 'hmac.h', | 12 'hmac.h', |
13 'hmac_win.cc', | 13 'hmac_win.cc', |
14 'secure_util.cc', | 14 'secure_util.cc', |
15 'secure_util.h', | 15 'secure_util.h', |
16 'symmetric_key.h', | 16 'symmetric_key.h', |
17 'symmetric_key_win.cc', | 17 'symmetric_key_win.cc', |
18 'third_party/nss/chromium-sha256.h', | 18 'third_party/nss/chromium-sha256.h', |
19 'third_party/nss/sha512.cc', | 19 'third_party/nss/sha512.cc', |
20 ], | 20 ], |
21 'nacl_win64_defines' : [ | |
22 'NACL_WIN64', | |
Ryan Sleevi
2012/06/14 19:35:26
You do not need this variable definition. It comes
ddorwin
2012/06/14 20:44:19
:) Ah, I thought that was a new define in the patc
| |
23 ], | |
24 | |
21 }, | 25 }, |
22 'targets': [ | 26 'targets': [ |
23 { | 27 { |
24 'target_name': 'crypto', | 28 'target_name': 'crypto', |
25 'type': '<(component)', | 29 'type': '<(component)', |
26 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto | 30 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto |
27 'dependencies': [ | 31 'dependencies': [ |
28 '../base/base.gyp:base', | 32 '../base/base.gyp:base', |
29 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | 33 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', |
30 ], | 34 ], |
(...skipping 15 matching lines...) Expand all Loading... | |
46 [ 'chromeos==1', { | 50 [ 'chromeos==1', { |
47 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 51 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
48 }, | 52 }, |
49 ], | 53 ], |
50 ], | 54 ], |
51 }, { # os_posix != 1 or OS == "mac" or OS == "android" | 55 }, { # os_posix != 1 or OS == "mac" or OS == "android" |
52 'sources/': [ | 56 'sources/': [ |
53 ['exclude', '_nss\.cc$'], | 57 ['exclude', '_nss\.cc$'], |
54 ['include', 'ec_private_key_nss\.cc$'], | 58 ['include', 'ec_private_key_nss\.cc$'], |
55 ['include', 'ec_signature_creator_nss\.cc$'], | 59 ['include', 'ec_signature_creator_nss\.cc$'], |
60 ['include', 'encryptor_nss\.cc$'], | |
61 ['include', 'hmac_nss\.cc$'], | |
56 ['include', 'signature_verifier_nss\.cc$'], | 62 ['include', 'signature_verifier_nss\.cc$'], |
63 ['include', 'symmetric_key_nss\.cc$'], | |
57 ], | 64 ], |
58 'sources!': [ | 65 'sources!': [ |
66 'hmac_win.cc', | |
59 'openpgp_symmetric_encryption.cc', | 67 'openpgp_symmetric_encryption.cc', |
68 'openpgp_symmetric_encryption.h', | |
69 'symmetric_key_win.cc', | |
60 ], | 70 ], |
61 }], | 71 }], |
62 [ 'OS == "android"', { | 72 [ 'OS == "android"', { |
63 'dependencies': [ | 73 'dependencies': [ |
64 '../third_party/openssl/openssl.gyp:openssl', | 74 '../third_party/openssl/openssl.gyp:openssl', |
65 ], | 75 ], |
66 'sources/': [ | 76 'sources/': [ |
67 ['exclude', 'ec_private_key_nss\.cc$'], | 77 ['exclude', 'ec_private_key_nss\.cc$'], |
68 ['exclude', 'ec_signature_creator_nss\.cc$'], | 78 ['exclude', 'ec_signature_creator_nss\.cc$'], |
79 ['exclude', 'encryptor_nss\.cc$'], | |
80 ['exclude', 'hmac_nss\.cc$'], | |
69 ['exclude', 'signature_verifier_nss\.cc$'], | 81 ['exclude', 'signature_verifier_nss\.cc$'], |
82 ['exclude', 'symmetric_key_nss\.cc$'], | |
70 ], | 83 ], |
71 }], | 84 }], |
72 [ 'os_bsd==1', { | 85 [ 'os_bsd==1', { |
73 'link_settings': { | 86 'link_settings': { |
74 'libraries': [ | 87 'libraries': [ |
75 '-L/usr/local/lib -lexecinfo', | 88 '-L/usr/local/lib -lexecinfo', |
76 ], | 89 ], |
77 }, | 90 }, |
78 }, | 91 }, |
79 ], | 92 ], |
80 [ 'OS == "mac"', { | 93 [ 'OS == "mac"', { |
81 'link_settings': { | 94 'link_settings': { |
82 'libraries': [ | 95 'libraries': [ |
83 '$(SDKROOT)/System/Library/Frameworks/Security.framework', | 96 '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
84 ], | 97 ], |
85 }, | 98 }, |
86 }, { # OS != "mac" | 99 }, { # OS != "mac" |
87 'sources!': [ | 100 'sources!': [ |
88 'cssm_init.cc', | 101 'cssm_init.cc', |
89 'cssm_init.h', | 102 'cssm_init.h', |
90 'mac_security_services_lock.cc', | 103 'mac_security_services_lock.cc', |
91 'mac_security_services_lock.h', | 104 'mac_security_services_lock.h', |
92 ], | 105 ], |
93 }], | 106 }], |
94 [ 'OS == "mac" or OS == "win"', { | 107 [ 'OS == "mac" or OS == "win"', { |
95 'dependencies': [ | 108 'dependencies': [ |
96 '../third_party/nss/nss.gyp:nspr', | 109 '../third_party/nss/nss.gyp:nspr', |
97 '../third_party/nss/nss.gyp:nss', | 110 '../third_party/nss/nss.gyp:nss', |
98 ], | 111 ], |
112 'export_dependent_settings': [ | |
113 '../third_party/nss/nss.gyp:nspr', | |
114 '../third_party/nss/nss.gyp:nss', | |
115 ], | |
99 }], | 116 }], |
100 [ 'OS != "win"', { | 117 [ 'OS != "win"', { |
101 'sources!': [ | 118 'sources!': [ |
102 'capi_util.h', | 119 'capi_util.h', |
103 'capi_util.cc', | 120 'capi_util.cc', |
104 ], | 121 ], |
105 }], | 122 }], |
106 [ 'use_openssl==1', { | 123 [ 'use_openssl==1', { |
107 # TODO(joth): Use a glob to match exclude patterns once the | 124 # TODO(joth): Use a glob to match exclude patterns once the |
108 # OpenSSL file set is complete. | 125 # OpenSSL file set is complete. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 'ec_private_key.h', | 173 'ec_private_key.h', |
157 'ec_private_key_nss.cc', | 174 'ec_private_key_nss.cc', |
158 'ec_private_key_openssl.cc', | 175 'ec_private_key_openssl.cc', |
159 'ec_signature_creator.cc', | 176 'ec_signature_creator.cc', |
160 'ec_signature_creator.h', | 177 'ec_signature_creator.h', |
161 'ec_signature_creator_impl.h', | 178 'ec_signature_creator_impl.h', |
162 'ec_signature_creator_nss.cc', | 179 'ec_signature_creator_nss.cc', |
163 'ec_signature_creator_openssl.cc', | 180 'ec_signature_creator_openssl.cc', |
164 'encryptor.cc', | 181 'encryptor.cc', |
165 'encryptor.h', | 182 'encryptor.h', |
166 'encryptor_mac.cc', | |
167 'encryptor_nss.cc', | 183 'encryptor_nss.cc', |
168 'encryptor_openssl.cc', | 184 'encryptor_openssl.cc', |
169 'encryptor_win.cc', | |
170 'hmac_mac.cc', | |
171 'hmac_nss.cc', | 185 'hmac_nss.cc', |
172 'hmac_openssl.cc', | 186 'hmac_openssl.cc', |
173 'keychain_mac.cc', | 187 'keychain_mac.cc', |
174 'keychain_mac.h', | 188 'keychain_mac.h', |
175 'mac_security_services_lock.cc', | 189 'mac_security_services_lock.cc', |
176 'mac_security_services_lock.h', | 190 'mac_security_services_lock.h', |
177 'mock_keychain_mac.cc', | 191 'mock_keychain_mac.cc', |
178 'mock_keychain_mac.h', | 192 'mock_keychain_mac.h', |
179 'p224_spake.cc', | 193 'p224_spake.cc', |
180 'p224_spake.h', | 194 'p224_spake.h', |
(...skipping 20 matching lines...) Expand all Loading... | |
201 'sha2.cc', | 215 'sha2.cc', |
202 'sha2.h', | 216 'sha2.h', |
203 'signature_creator.h', | 217 'signature_creator.h', |
204 'signature_creator_mac.cc', | 218 'signature_creator_mac.cc', |
205 'signature_creator_nss.cc', | 219 'signature_creator_nss.cc', |
206 'signature_creator_openssl.cc', | 220 'signature_creator_openssl.cc', |
207 'signature_creator_win.cc', | 221 'signature_creator_win.cc', |
208 'signature_verifier.h', | 222 'signature_verifier.h', |
209 'signature_verifier_nss.cc', | 223 'signature_verifier_nss.cc', |
210 'signature_verifier_openssl.cc', | 224 'signature_verifier_openssl.cc', |
211 'symmetric_key_mac.cc', | |
212 'symmetric_key_nss.cc', | 225 'symmetric_key_nss.cc', |
213 'symmetric_key_openssl.cc', | 226 'symmetric_key_openssl.cc', |
214 'third_party/nss/chromium-blapi.h', | 227 'third_party/nss/chromium-blapi.h', |
215 'third_party/nss/chromium-blapit.h', | 228 'third_party/nss/chromium-blapit.h', |
216 'third_party/nss/chromium-nss.h', | 229 'third_party/nss/chromium-nss.h', |
217 'third_party/nss/pk11akey.cc', | 230 'third_party/nss/pk11akey.cc', |
218 'third_party/nss/secsign.cc', | 231 'third_party/nss/secsign.cc', |
219 ], | 232 ], |
220 }, | 233 }, |
221 { | 234 { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
296 'type': '<(component)', | 309 'type': '<(component)', |
297 'dependencies': [ | 310 'dependencies': [ |
298 '../base/base.gyp:base_nacl_win64', | 311 '../base/base.gyp:base_nacl_win64', |
299 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64', | 312 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64', |
300 ], | 313 ], |
301 'sources': [ | 314 'sources': [ |
302 '<@(hmac_win64_related_sources)', | 315 '<@(hmac_win64_related_sources)', |
303 ], | 316 ], |
304 'defines': [ | 317 'defines': [ |
305 'CRYPTO_IMPLEMENTATION', | 318 'CRYPTO_IMPLEMENTATION', |
319 '<@(nacl_win64_defines)', | |
306 ], | 320 ], |
307 'msvs_disabled_warnings': [ | 321 'msvs_disabled_warnings': [ |
308 4018, | 322 4018, |
309 ], | 323 ], |
310 'configurations': { | 324 'configurations': { |
311 'Common_Base': { | 325 'Common_Base': { |
312 'msvs_target_platform': 'x64', | 326 'msvs_target_platform': 'x64', |
313 }, | 327 }, |
314 }, | 328 }, |
315 }, | 329 }, |
316 ], | 330 ], |
317 }], | 331 }], |
318 ], | 332 ], |
319 } | 333 } |
OLD | NEW |