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

Side by Side Diff: crypto/BUILD.gn

Issue 401623006: Extract ScopedTestNSSDB from nss_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed function call that was missed during renaming. Created 6 years, 5 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
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 import("//build/config/crypto.gni") 5 import("//build/config/crypto.gni")
6 6
7 component("crypto") { 7 component("crypto") {
8 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto. 8 output_name = "crcrypto" # Avoid colliding with OpenSSL's libcrypto.
9 sources = [ 9 sources = [
10 "apple_keychain.h", 10 "apple_keychain.h",
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 "third_party/nss/chromium-nss.h", 84 "third_party/nss/chromium-nss.h",
85 "third_party/nss/chromium-sha256.h", 85 "third_party/nss/chromium-sha256.h",
86 "third_party/nss/pk11akey.cc", 86 "third_party/nss/pk11akey.cc",
87 "third_party/nss/rsawrapr.c", 87 "third_party/nss/rsawrapr.c",
88 "third_party/nss/secsign.cc", 88 "third_party/nss/secsign.cc",
89 "third_party/nss/sha512.cc", 89 "third_party/nss/sha512.cc",
90 ] 90 ]
91 91
92 deps = [ 92 deps = [
93 ":platform", 93 ":platform",
94 ":test_support",
94 "//base", 95 "//base",
95 "//base/third_party/dynamic_annotations", 96 "//base/third_party/dynamic_annotations",
96 ] 97 ]
97 98
98 if (!is_mac && !is_ios) { 99 if (!is_mac && !is_ios) {
99 sources -= [ 100 sources -= [
100 "apple_keychain.h", 101 "apple_keychain.h",
101 "mock_apple_keychain.cc", 102 "mock_apple_keychain.cc",
102 "mock_apple_keychain.h", 103 "mock_apple_keychain.h",
103 ] 104 ]
(...skipping 20 matching lines...) Expand all
124 125
125 if (use_openssl) { 126 if (use_openssl) {
126 # Remove NSS files when using OpenSSL 127 # Remove NSS files when using OpenSSL
127 sources -= [ 128 sources -= [
128 "ec_private_key_nss.cc", 129 "ec_private_key_nss.cc",
129 "ec_signature_creator_nss.cc", 130 "ec_signature_creator_nss.cc",
130 "encryptor_nss.cc", 131 "encryptor_nss.cc",
131 "hmac_nss.cc", 132 "hmac_nss.cc",
132 "nss_util.cc", 133 "nss_util.cc",
133 "nss_util.h", 134 "nss_util.h",
135 "nss_util_internal.h",
134 "rsa_private_key_nss.cc", 136 "rsa_private_key_nss.cc",
135 "secure_hash_default.cc", 137 "secure_hash_default.cc",
136 "signature_creator_nss.cc", 138 "signature_creator_nss.cc",
137 "signature_verifier_nss.cc", 139 "signature_verifier_nss.cc",
138 "symmetric_key_nss.cc", 140 "symmetric_key_nss.cc",
139 "third_party/nss/chromium-blapi.h", 141 "third_party/nss/chromium-blapi.h",
140 "third_party/nss/chromium-blapit.h", 142 "third_party/nss/chromium-blapit.h",
141 "third_party/nss/chromium-nss.h", 143 "third_party/nss/chromium-nss.h",
142 "third_party/nss/pk11akey.cc", 144 "third_party/nss/pk11akey.cc",
143 "third_party/nss/rsawrapr.c", 145 "third_party/nss/rsawrapr.c",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 ":crypto", 232 ":crypto",
231 ":platform", 233 ":platform",
232 "//base", 234 "//base",
233 "//base/test:run_all_unittests", 235 "//base/test:run_all_unittests",
234 "//base/test:test_support", 236 "//base/test:test_support",
235 "//testing/gmock", 237 "//testing/gmock",
236 "//testing/gtest", 238 "//testing/gtest",
237 ] 239 ]
238 } 240 }
239 241
242 source_set("test_support") {
243 sources = [
244 'scoped_test_nss_db.cc',
245 'scoped_test_nss_db.h',
246 'scoped_test_nss_chromeos_user.cc',
247 'scoped_test_nss_chromeos_user.h',
248 'scoped_test_system_nss_key_slot.cc',
249 'scoped_test_system_nss_key_slot.h',
250 ]
251 deps = [
252 ":crypto",
253 "//base",
254 ]
255
256 if (!use_nss_certs) {
257 sources -= [
258 'scoped_test_nss_db.cc',
259 'scoped_test_nss_db.h',
260 ]
261 }
262
263 if (!is_chromeos) {
264 sources -= [
265 'scoped_test_nss_chromeos_user.cc',
266 'scoped_test_nss_chromeos_user.h',
267 'scoped_test_system_nss_key_slot.cc',
268 'scoped_test_system_nss_key_slot.h',
269 ]
270 }
271 }
272
240 # This is a meta-target that forwards to NSS's SSL library or OpenSSL, 273 # This is a meta-target that forwards to NSS's SSL library or OpenSSL,
241 # according to the state of the crypto flags. A target just wanting to depend 274 # according to the state of the crypto flags. A target just wanting to depend
242 # on the current SSL library should just depend on this. 275 # on the current SSL library should just depend on this.
243 group("platform") { 276 group("platform") {
244 if (use_openssl) { 277 if (use_openssl) {
245 deps = [ "//third_party/openssl" ] 278 deps = [ "//third_party/openssl" ]
246 } else { 279 } else {
247 deps = [ "//net/third_party/nss/ssl:libssl" ] 280 deps = [ "//net/third_party/nss/ssl:libssl" ]
248 if (is_linux) { 281 if (is_linux) {
249 # On Linux, we use the system NSS (excepting SSL where we always use our 282 # On Linux, we use the system NSS (excepting SSL where we always use our
(...skipping 11 matching lines...) Expand all
261 ] 294 ]
262 } else { 295 } else {
263 # Non-Linux platforms use the hermetic NSS from the tree. 296 # Non-Linux platforms use the hermetic NSS from the tree.
264 deps += [ 297 deps += [
265 "//third_party/nss:nspr", 298 "//third_party/nss:nspr",
266 "//third_party/nss:nss", 299 "//third_party/nss:nss",
267 ] 300 ]
268 } 301 }
269 } 302 }
270 } 303 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698