Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: crypto/crypto.gyp

Issue 6805019: Move crypto files out of base, to a top level directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixes comments by eroman Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « crypto/capi_util.cc ('k') | crypto/crypto_module_blocking_password_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 'target_name': 'crypto',
12 'type': '<(library)',
13 'dependencies': [
14 '../base/base.gyp:base',
15 ],
16 'msvs_disabled_warnings': [
17 4018,
18 ],
19 'conditions': [
20 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris "', {
21 'conditions': [
22 [ 'chromeos==1', {
23 'sources/': [ ['include', '_chromeos\\.cc$'] ]
24 },
25 ],
26 [ 'use_openssl==1', {
27 'dependencies': [
28 '../third_party/openssl/openssl.gyp:openssl',
29 ],
30 }, { # use_openssl==0
31 'dependencies': [
32 '../build/linux/system.gyp:nss',
33 ],
34 'export_dependent_settings': [
35 '../build/linux/system.gyp:nss',
36 ],
37 }
38 ],
39 ],
40 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
41 'sources/': [
42 ['exclude', '_nss\.cc$'],
43 ],
44 }],
45 [ 'OS == "freebsd" or OS == "openbsd"', {
46 'link_settings': {
47 'libraries': [
48 '-L/usr/local/lib -lexecinfo',
49 ],
50 },
51 },
52 ],
53 [ 'OS == "mac"', {
54 'link_settings': {
55 'libraries': [
56 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
57 ],
58 },
59 }, { # OS != "mac"
60 'sources!': [
61 'cssm_init.cc',
62 'cssm_init.h',
63 'mac_security_services_lock.cc',
64 'mac_security_services_lock.h',
65 ],
66 }],
67 [ 'OS == "mac" or OS == "win"', {
68 'dependencies': [
69 '../third_party/nss/nss.gyp:nss',
70 ],
71 },],
72 [ 'OS != "win"', {
73 'sources!': [
74 'capi_util.h',
75 'capi_util.cc',
76 ],
77 },],
78 [ 'use_openssl==1', {
79 # TODO(joth): Use a glob to match exclude patterns once the
80 # OpenSSL file set is complete.
81 'sources!': [
82 'encryptor_nss.cc',
83 'hmac_nss.cc',
84 'nss_util.cc',
85 'nss_util.h',
86 'rsa_private_key_nss.cc',
87 'secure_hash_default.cc',
88 'signature_creator_nss.cc',
89 'signature_verifier_nss.cc',
90 'symmetric_key_nss.cc',
91 'third_party/nss/blapi.h',
92 'third_party/nss/blapit.h',
93 'third_party/nss/sha256.h',
94 'third_party/nss/sha512.cc',
95 ],
96 }, {
97 'sources!': [
98 'encryptor_openssl.cc',
99 'hmac_openssl.cc',
100 'openssl_util.cc',
101 'openssl_util.h',
102 'rsa_private_key_openssl.cc',
103 'secure_hash_openssl.cc',
104 'signature_creator_openssl.cc',
105 'signature_verifier_openssl.cc',
106 'symmetric_key_openssl.cc',
107 ],
108 },],
109 ],
110 'sources': [
111 'capi_util.cc',
112 'capi_util.h',
113 'crypto_module_blocking_password_delegate.h',
114 'cssm_init.cc',
115 'cssm_init.h',
116 'encryptor.h',
117 'encryptor_mac.cc',
118 'encryptor_nss.cc',
119 'encryptor_openssl.cc',
120 'encryptor_win.cc',
121 'hmac.h',
122 'hmac_mac.cc',
123 'hmac_nss.cc',
124 'hmac_openssl.cc',
125 'hmac_win.cc',
126 'mac_security_services_lock.cc',
127 'mac_security_services_lock.h',
128 'openssl_util.cc',
129 'openssl_util.h',
130 'nss_util.cc',
131 'nss_util.h',
132 'nss_util_internal.h',
133 'rsa_private_key.h',
134 'rsa_private_key.cc',
135 'rsa_private_key_mac.cc',
136 'rsa_private_key_nss.cc',
137 'rsa_private_key_openssl.cc',
138 'rsa_private_key_win.cc',
139 'scoped_capi_types.h',
140 'scoped_nss_types.h',
141 'secure_hash.h',
142 'secure_hash_default.cc',
143 'secure_hash_openssl.cc',
144 'sha2.cc',
145 'sha2.h',
146 'signature_creator.h',
147 'signature_creator_mac.cc',
148 'signature_creator_nss.cc',
149 'signature_creator_openssl.cc',
150 'signature_creator_win.cc',
151 'signature_verifier.h',
152 'signature_verifier_mac.cc',
153 'signature_verifier_nss.cc',
154 'signature_verifier_openssl.cc',
155 'signature_verifier_win.cc',
156 'symmetric_key.h',
157 'symmetric_key_mac.cc',
158 'symmetric_key_nss.cc',
159 'symmetric_key_openssl.cc',
160 'symmetric_key_win.cc',
161 'third_party/nss/blapi.h',
162 'third_party/nss/blapit.h',
163 'third_party/nss/sha256.h',
164 'third_party/nss/sha512.cc',
165 ],
166 },
167 {
168 'target_name': 'crypto_unittests',
169 'type': 'executable',
170 'sources': [
171 # Infrastructure files.
172 'run_all_unittests.cc',
173
174 # Tests.
175 'encryptor_unittest.cc',
176 'hmac_unittest.cc',
177 'rsa_private_key_unittest.cc',
178 'rsa_private_key_nss_unittest.cc',
179 'secure_hash_unittest.cc',
180 'sha2_unittest.cc',
181 'signature_creator_unittest.cc',
182 'signature_verifier_unittest.cc',
183 'symmetric_key_unittest.cc',
184 ],
185 'dependencies': [
186 'crypto',
187 '../base/base.gyp:base',
188 '../base/base.gyp:test_support_base',
189 '../testing/gmock.gyp:gmock',
190 '../testing/gtest.gyp:gtest',
191 ],
192 'conditions': [
193 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris "', {
194 'conditions': [
195 [ 'linux_use_tcmalloc==1', {
196 'dependencies': [
197 '../base/allocator/allocator.gyp:allocator',
198 ],
199 },
200 ],
201 ],
202 'dependencies': [
203 '../build/linux/system.gyp:nss',
204 ],
205 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
206 'sources!': [
207 'rsa_private_key_nss_unittest.cc',
208 ]
209 }],
210 [ 'OS == "mac" or OS == "win"', {
211 'dependencies': [
212 '../third_party/nss/nss.gyp:nss',
213 ],
214 }],
215 [ 'use_openssl==1', {
216 'sources!': [
217 'rsa_private_key_nss_unittest.cc',
218 ],
219 }],
220 ],
221 },
222 ],
223 }
OLDNEW
« no previous file with comments | « crypto/capi_util.cc ('k') | crypto/crypto_module_blocking_password_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698