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 17 matching lines...) Expand all Loading... | |
28 '../base/base.gyp:base', | 28 '../base/base.gyp:base', |
29 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | 29 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', |
30 ], | 30 ], |
31 'defines': [ | 31 'defines': [ |
32 'CRYPTO_IMPLEMENTATION', | 32 'CRYPTO_IMPLEMENTATION', |
33 ], | 33 ], |
34 'msvs_disabled_warnings': [ | 34 'msvs_disabled_warnings': [ |
35 4018, | 35 4018, |
36 ], | 36 ], |
37 'conditions': [ | 37 'conditions': [ |
38 [ 'os_posix == 1 and OS != "mac" and OS != "android"', { | 38 [ 'os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
39 'dependencies': [ | 39 'dependencies': [ |
40 '../build/linux/system.gyp:ssl', | 40 '../build/linux/system.gyp:ssl', |
41 ], | 41 ], |
42 'export_dependent_settings': [ | 42 'export_dependent_settings': [ |
43 '../build/linux/system.gyp:ssl', | 43 '../build/linux/system.gyp:ssl', |
44 ], | 44 ], |
45 'conditions': [ | 45 'conditions': [ |
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 == "ios" 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$'], | 56 ['include', 'encryptor_nss\.cc$'], |
57 ['include', 'hmac_nss\.cc$'], | 57 ['include', 'hmac_nss\.cc$'], |
58 ['include', 'signature_verifier_nss\.cc$'], | 58 ['include', 'signature_verifier_nss\.cc$'], |
59 ['include', 'symmetric_key_nss\.cc$'], | 59 ['include', 'symmetric_key_nss\.cc$'], |
60 ], | 60 ], |
61 'sources!': [ | 61 'sources!': [ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 ], | 93 ], |
94 }, | 94 }, |
95 }, { # OS != "mac" | 95 }, { # OS != "mac" |
96 'sources!': [ | 96 'sources!': [ |
97 'cssm_init.cc', | 97 'cssm_init.cc', |
98 'cssm_init.h', | 98 'cssm_init.h', |
99 'mac_security_services_lock.cc', | 99 'mac_security_services_lock.cc', |
100 'mac_security_services_lock.h', | 100 'mac_security_services_lock.h', |
101 ], | 101 ], |
102 }], | 102 }], |
103 [ 'OS == "mac" or OS == "win"', { | 103 [ 'OS == "mac" or OS == "ios" or OS == "win"', { |
104 'dependencies': [ | 104 'dependencies': [ |
105 '../third_party/nss/nss.gyp:nspr', | 105 '../third_party/nss/nss.gyp:nspr', |
106 '../third_party/nss/nss.gyp:nss', | 106 '../third_party/nss/nss.gyp:nss', |
107 ], | 107 ], |
108 'export_dependent_settings': [ | 108 'export_dependent_settings': [ |
109 '../third_party/nss/nss.gyp:nspr', | 109 '../third_party/nss/nss.gyp:nspr', |
110 '../third_party/nss/nss.gyp:nss', | 110 '../third_party/nss/nss.gyp:nss', |
111 ], | 111 ], |
112 }], | 112 }], |
113 [ 'OS != "win"', { | 113 [ 'OS != "win"', { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 'openssl_util.cc', | 149 'openssl_util.cc', |
150 'openssl_util.h', | 150 'openssl_util.h', |
151 'rsa_private_key_openssl.cc', | 151 'rsa_private_key_openssl.cc', |
152 'secure_hash_openssl.cc', | 152 'secure_hash_openssl.cc', |
153 'signature_creator_openssl.cc', | 153 'signature_creator_openssl.cc', |
154 'signature_verifier_openssl.cc', | 154 'signature_verifier_openssl.cc', |
155 'symmetric_key_openssl.cc', | 155 'symmetric_key_openssl.cc', |
156 ], | 156 ], |
157 },], | 157 },], |
158 ], | 158 ], |
159 'target_conditions' : [ | |
160 # Use target_conditions so these apply after the ones in | |
161 # build/commong.gypi so mac files can be included. | |
162 [ 'OS == "ios"', { | |
163 'sources!': [ | |
164 # TODO(wtc): sort out nss/openssl stuff | |
stuartmorgan
2012/08/06 16:07:31
This isn't a useful comment; discuss with wtc to f
msarda
2012/08/07 08:39:44
I removed this section - this will be addressed by
wtc
2012/08/08 18:09:58
I don't know what this comment means. Perhaps som
| |
165 'rsa_private_key.cc', | |
166 ], | |
167 }], | |
168 ], | |
159 'sources': [ | 169 'sources': [ |
160 # NOTE: all transitive dependencies of HMAC on windows need | 170 # NOTE: all transitive dependencies of HMAC on windows need |
161 # to be placed in the source list above. | 171 # to be placed in the source list above. |
162 '<@(hmac_win64_related_sources)', | 172 '<@(hmac_win64_related_sources)', |
163 'capi_util.cc', | 173 'capi_util.cc', |
164 'capi_util.h', | 174 'capi_util.h', |
165 'crypto_export.h', | 175 'crypto_export.h', |
166 'crypto_module_blocking_password_delegate.h', | 176 'crypto_module_blocking_password_delegate.h', |
167 'cssm_init.cc', | 177 'cssm_init.cc', |
168 'cssm_init.h', | 178 'cssm_init.h', |
(...skipping 24 matching lines...) Expand all Loading... | |
193 'nss_util_internal.h', | 203 'nss_util_internal.h', |
194 'openpgp_symmetric_encryption.cc', | 204 'openpgp_symmetric_encryption.cc', |
195 'openpgp_symmetric_encryption.h', | 205 'openpgp_symmetric_encryption.h', |
196 'openssl_util.cc', | 206 'openssl_util.cc', |
197 'openssl_util.h', | 207 'openssl_util.h', |
198 'p224.cc', | 208 'p224.cc', |
199 'p224.h', | 209 'p224.h', |
200 'random.h', | 210 'random.h', |
201 'random.cc', | 211 'random.cc', |
202 'rsa_private_key.cc', | 212 'rsa_private_key.cc', |
213 'rsa_private_key_ios.cc', | |
203 'rsa_private_key.h', | 214 'rsa_private_key.h', |
204 'rsa_private_key_mac.cc', | 215 'rsa_private_key_mac.cc', |
205 'rsa_private_key_nss.cc', | 216 'rsa_private_key_nss.cc', |
206 'rsa_private_key_openssl.cc', | 217 'rsa_private_key_openssl.cc', |
207 'rsa_private_key_win.cc', | 218 'rsa_private_key_win.cc', |
208 'scoped_capi_types.h', | 219 'scoped_capi_types.h', |
209 'scoped_nss_types.h', | 220 'scoped_nss_types.h', |
210 'secure_hash.h', | 221 'secure_hash.h', |
211 'secure_hash_default.cc', | 222 'secure_hash_default.cc', |
212 'secure_hash_openssl.cc', | 223 'secure_hash_openssl.cc', |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 'openpgp_symmetric_encryption_unittest.cc', | 266 'openpgp_symmetric_encryption_unittest.cc', |
256 ], | 267 ], |
257 'dependencies': [ | 268 'dependencies': [ |
258 'crypto', | 269 'crypto', |
259 '../base/base.gyp:base', | 270 '../base/base.gyp:base', |
260 '../base/base.gyp:test_support_base', | 271 '../base/base.gyp:test_support_base', |
261 '../testing/gmock.gyp:gmock', | 272 '../testing/gmock.gyp:gmock', |
262 '../testing/gtest.gyp:gtest', | 273 '../testing/gtest.gyp:gtest', |
263 ], | 274 ], |
264 'conditions': [ | 275 'conditions': [ |
265 [ 'os_posix == 1 and OS != "mac" and OS != "android"', { | 276 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
266 'conditions': [ | 277 'conditions': [ |
267 [ 'linux_use_tcmalloc==1', { | 278 [ 'linux_use_tcmalloc==1', { |
268 'dependencies': [ | 279 'dependencies': [ |
269 '../base/allocator/allocator.gyp:allocator', | 280 '../base/allocator/allocator.gyp:allocator', |
270 ], | 281 ], |
271 }, | 282 }, |
272 ], | 283 ], |
273 ], | 284 ], |
274 'dependencies': [ | 285 'dependencies': [ |
275 '../build/linux/system.gyp:ssl', | 286 '../build/linux/system.gyp:ssl', |
276 ], | 287 ], |
277 }, { # os_posix != 1 or OS == "mac" or OS == "android" | 288 }, { # os_posix != 1 or OS == "mac" or OS == "android" or OS == "ios" |
278 'sources!': [ | 289 'sources!': [ |
279 'rsa_private_key_nss_unittest.cc', | 290 'rsa_private_key_nss_unittest.cc', |
280 'openpgp_symmetric_encryption_unittest.cc', | 291 'openpgp_symmetric_encryption_unittest.cc', |
281 ] | 292 ] |
282 }], | 293 }], |
283 [ 'OS == "mac" or OS == "win"', { | 294 [ 'OS == "mac" or OS == "ios" or OS == "win"', { |
284 'dependencies': [ | 295 'dependencies': [ |
285 '../third_party/nss/nss.gyp:nss', | 296 '../third_party/nss/nss.gyp:nss', |
286 ], | 297 ], |
287 }], | 298 }], |
299 ['OS == "ios"', { | |
300 'sources!': [ | |
301 # TODO(wtc): sort out nss/openssl stuff | |
stuartmorgan
2012/08/06 16:07:31
Same.
msarda
2012/08/07 08:39:44
I removed this section - this will be addressed by
| |
302 'rsa_private_key_unittest.cc', | |
303 'signature_creator_unittest.cc', | |
304 'signature_verifier_unittest.cc', | |
305 ], | |
306 }], | |
288 [ 'OS == "mac"', { | 307 [ 'OS == "mac"', { |
289 'dependencies': [ | 308 'dependencies': [ |
290 '../third_party/nss/nss.gyp:nspr', | 309 '../third_party/nss/nss.gyp:nspr', |
291 ], | 310 ], |
292 }], | 311 }], |
293 [ 'use_openssl==1', { | 312 [ 'use_openssl==1', { |
294 'sources!': [ | 313 'sources!': [ |
295 'nss_util_unittest.cc', | 314 'nss_util_unittest.cc', |
296 'openpgp_symmetric_encryption_unittest.cc', | 315 'openpgp_symmetric_encryption_unittest.cc', |
297 'rsa_private_key_nss_unittest.cc', | 316 'rsa_private_key_nss_unittest.cc', |
(...skipping 28 matching lines...) Expand all Loading... | |
326 'configurations': { | 345 'configurations': { |
327 'Common_Base': { | 346 'Common_Base': { |
328 'msvs_target_platform': 'x64', | 347 'msvs_target_platform': 'x64', |
329 }, | 348 }, |
330 }, | 349 }, |
331 }, | 350 }, |
332 ], | 351 ], |
333 }], | 352 }], |
334 ], | 353 ], |
335 } | 354 } |
OLD | NEW |