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': [ |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 [ 'chromeos==1', { | 46 [ 'chromeos==1', { |
47 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 47 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
48 }, | 48 }, |
49 ], | 49 ], |
50 ], | 50 ], |
51 }, { # os_posix != 1 or OS == "mac" or OS == "android" | 51 }, { # os_posix != 1 or OS == "mac" or OS == "android" |
52 'sources/': [ | 52 'sources/': [ |
53 ['exclude', '_nss\.cc$'], | 53 ['exclude', '_nss\.cc$'], |
54 ['include', 'ec_private_key_nss\.cc$'], | 54 ['include', 'ec_private_key_nss\.cc$'], |
55 ['include', 'ec_signature_creator_nss\.cc$'], | 55 ['include', 'ec_signature_creator_nss\.cc$'], |
56 ['include', 'encryptor_nss\.cc$'], | |
57 ['include', 'hmac_nss\.cc$'], | |
56 ['include', 'signature_verifier_nss\.cc$'], | 58 ['include', 'signature_verifier_nss\.cc$'], |
59 ['include', 'symmetric_key_nss\.cc$'], | |
57 ], | 60 ], |
58 'sources!': [ | 61 'sources!': [ |
62 'hmac_win.cc', | |
59 'openpgp_symmetric_encryption.cc', | 63 'openpgp_symmetric_encryption.cc', |
64 'openpgp_symmetric_encryption.h', | |
65 'symmetric_key_win.cc', | |
66 # TODO(ddorwin): Delete all of these files and remove them from he re. | |
67 'encryptor_mac.cc', | |
68 'encryptor_win.cc', | |
69 'hmac_mac.cc', | |
70 'symmetric_key_mac.cc', | |
Ryan Sleevi
2012/06/13 20:39:51
nit: sorting
nit: line wrapping
issue: You alread
ddorwin
2012/06/13 21:53:23
Done.
I misunderstood and thought *_win.* were aut
| |
60 ], | 71 ], |
61 }], | 72 }], |
62 [ 'OS == "android"', { | 73 [ 'OS == "android"', { |
63 'dependencies': [ | 74 'dependencies': [ |
64 '../third_party/openssl/openssl.gyp:openssl', | 75 '../third_party/openssl/openssl.gyp:openssl', |
65 ], | 76 ], |
66 'sources/': [ | 77 'sources/': [ |
67 ['exclude', 'ec_private_key_nss\.cc$'], | 78 ['exclude', 'ec_private_key_nss\.cc$'], |
68 ['exclude', 'ec_signature_creator_nss\.cc$'], | 79 ['exclude', 'ec_signature_creator_nss\.cc$'], |
69 ['exclude', 'signature_verifier_nss\.cc$'], | 80 ['exclude', 'signature_verifier_nss\.cc$'], |
Ryan Sleevi
2012/06/13 20:39:51
You need to update this section with the changes y
ddorwin
2012/06/13 21:53:23
Done.
| |
70 ], | 81 ], |
71 }], | 82 }], |
72 [ 'os_bsd==1', { | 83 [ 'os_bsd==1', { |
73 'link_settings': { | 84 'link_settings': { |
74 'libraries': [ | 85 'libraries': [ |
75 '-L/usr/local/lib -lexecinfo', | 86 '-L/usr/local/lib -lexecinfo', |
76 ], | 87 ], |
77 }, | 88 }, |
78 }, | 89 }, |
79 ], | 90 ], |
80 [ 'OS == "mac"', { | 91 [ 'OS == "mac"', { |
81 'link_settings': { | 92 'link_settings': { |
82 'libraries': [ | 93 'libraries': [ |
83 '$(SDKROOT)/System/Library/Frameworks/Security.framework', | 94 '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
84 ], | 95 ], |
85 }, | 96 }, |
86 }, { # OS != "mac" | 97 }, { # OS != "mac" |
87 'sources!': [ | 98 'sources!': [ |
88 'cssm_init.cc', | 99 'cssm_init.cc', |
89 'cssm_init.h', | 100 'cssm_init.h', |
90 'mac_security_services_lock.cc', | 101 'mac_security_services_lock.cc', |
91 'mac_security_services_lock.h', | 102 'mac_security_services_lock.h', |
92 ], | 103 ], |
93 }], | 104 }], |
94 [ 'OS == "mac" or OS == "win"', { | 105 [ 'OS == "mac" or OS == "win"', { |
95 'dependencies': [ | 106 'dependencies': [ |
96 '../third_party/nss/nss.gyp:nspr', | 107 '../third_party/nss/nss.gyp:nspr', |
97 '../third_party/nss/nss.gyp:nss', | 108 '../third_party/nss/nss.gyp:nss', |
98 ], | 109 ], |
110 'export_dependent_settings': [ | |
111 '../third_party/nss/nss.gyp:nspr', | |
112 '../third_party/nss/nss.gyp:nss', | |
Ryan Sleevi
2012/06/13 20:39:51
Just to confirm this is absolutely necessary. It s
ddorwin
2012/06/13 21:53:23
I got this from Matt. I'll try building without it
ddorwin
2012/06/13 22:43:42
Removing them caused the following error on Mac:
| |
113 ], | |
99 }], | 114 }], |
100 [ 'OS != "win"', { | 115 [ 'OS != "win"', { |
101 'sources!': [ | 116 'sources!': [ |
102 'capi_util.h', | 117 'capi_util.h', |
103 'capi_util.cc', | 118 'capi_util.cc', |
104 ], | 119 ], |
105 }], | 120 }], |
106 [ 'use_openssl==1', { | 121 [ 'use_openssl==1', { |
107 # TODO(joth): Use a glob to match exclude patterns once the | 122 # TODO(joth): Use a glob to match exclude patterns once the |
108 # OpenSSL file set is complete. | 123 # OpenSSL file set is complete. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 'ec_private_key.h', | 171 'ec_private_key.h', |
157 'ec_private_key_nss.cc', | 172 'ec_private_key_nss.cc', |
158 'ec_private_key_openssl.cc', | 173 'ec_private_key_openssl.cc', |
159 'ec_signature_creator.cc', | 174 'ec_signature_creator.cc', |
160 'ec_signature_creator.h', | 175 'ec_signature_creator.h', |
161 'ec_signature_creator_impl.h', | 176 'ec_signature_creator_impl.h', |
162 'ec_signature_creator_nss.cc', | 177 'ec_signature_creator_nss.cc', |
163 'ec_signature_creator_openssl.cc', | 178 'ec_signature_creator_openssl.cc', |
164 'encryptor.cc', | 179 'encryptor.cc', |
165 'encryptor.h', | 180 'encryptor.h', |
166 'encryptor_mac.cc', | |
167 'encryptor_nss.cc', | 181 'encryptor_nss.cc', |
168 'encryptor_openssl.cc', | 182 'encryptor_openssl.cc', |
169 'encryptor_win.cc', | |
170 'hmac_mac.cc', | |
171 'hmac_nss.cc', | 183 'hmac_nss.cc', |
172 'hmac_openssl.cc', | 184 'hmac_openssl.cc', |
173 'keychain_mac.cc', | 185 'keychain_mac.cc', |
174 'keychain_mac.h', | 186 'keychain_mac.h', |
175 'mac_security_services_lock.cc', | 187 'mac_security_services_lock.cc', |
176 'mac_security_services_lock.h', | 188 'mac_security_services_lock.h', |
177 'mock_keychain_mac.cc', | 189 'mock_keychain_mac.cc', |
178 'mock_keychain_mac.h', | 190 'mock_keychain_mac.h', |
179 'p224_spake.cc', | 191 'p224_spake.cc', |
180 'p224_spake.h', | 192 'p224_spake.h', |
(...skipping 20 matching lines...) Expand all Loading... | |
201 'sha2.cc', | 213 'sha2.cc', |
202 'sha2.h', | 214 'sha2.h', |
203 'signature_creator.h', | 215 'signature_creator.h', |
204 'signature_creator_mac.cc', | 216 'signature_creator_mac.cc', |
205 'signature_creator_nss.cc', | 217 'signature_creator_nss.cc', |
206 'signature_creator_openssl.cc', | 218 'signature_creator_openssl.cc', |
207 'signature_creator_win.cc', | 219 'signature_creator_win.cc', |
208 'signature_verifier.h', | 220 'signature_verifier.h', |
209 'signature_verifier_nss.cc', | 221 'signature_verifier_nss.cc', |
210 'signature_verifier_openssl.cc', | 222 'signature_verifier_openssl.cc', |
211 'symmetric_key_mac.cc', | |
212 'symmetric_key_nss.cc', | 223 'symmetric_key_nss.cc', |
213 'symmetric_key_openssl.cc', | 224 'symmetric_key_openssl.cc', |
214 'third_party/nss/chromium-blapi.h', | 225 'third_party/nss/chromium-blapi.h', |
215 'third_party/nss/chromium-blapit.h', | 226 'third_party/nss/chromium-blapit.h', |
216 'third_party/nss/chromium-nss.h', | 227 'third_party/nss/chromium-nss.h', |
217 'third_party/nss/pk11akey.cc', | 228 'third_party/nss/pk11akey.cc', |
218 'third_party/nss/secsign.cc', | 229 'third_party/nss/secsign.cc', |
219 ], | 230 ], |
220 }, | 231 }, |
221 { | 232 { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
296 'type': '<(component)', | 307 'type': '<(component)', |
297 'dependencies': [ | 308 'dependencies': [ |
298 '../base/base.gyp:base_nacl_win64', | 309 '../base/base.gyp:base_nacl_win64', |
299 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64', | 310 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64', |
300 ], | 311 ], |
301 'sources': [ | 312 'sources': [ |
302 '<@(hmac_win64_related_sources)', | 313 '<@(hmac_win64_related_sources)', |
303 ], | 314 ], |
304 'defines': [ | 315 'defines': [ |
305 'CRYPTO_IMPLEMENTATION', | 316 'CRYPTO_IMPLEMENTATION', |
317 'NACL_WIN64', | |
Ryan Sleevi
2012/06/13 20:39:51
This should be '<@(nacl_win64_defines)'
ddorwin
2012/06/13 21:53:23
Done.
| |
306 ], | 318 ], |
307 'msvs_disabled_warnings': [ | 319 'msvs_disabled_warnings': [ |
308 4018, | 320 4018, |
309 ], | 321 ], |
310 'configurations': { | 322 'configurations': { |
311 'Common_Base': { | 323 'Common_Base': { |
312 'msvs_target_platform': 'x64', | 324 'msvs_target_platform': 'x64', |
313 }, | 325 }, |
314 }, | 326 }, |
315 }, | 327 }, |
316 ], | 328 ], |
317 }], | 329 }], |
318 ], | 330 ], |
319 } | 331 } |
OLD | NEW |