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

Side by Side Diff: crypto/BUILD.gn

Issue 399993002: Switch to BoringSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/content_child.gypi ('k') | crypto/crypto.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 "//testing/gmock", 235 "//testing/gmock",
236 "//testing/gtest", 236 "//testing/gtest",
237 ] 237 ]
238 } 238 }
239 239
240 # This is a meta-target that forwards to NSS's SSL library or OpenSSL, 240 # 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 241 # 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. 242 # on the current SSL library should just depend on this.
243 group("platform") { 243 group("platform") {
244 if (use_openssl) { 244 if (use_openssl) {
245 deps = [ "//third_party/openssl" ] 245 deps = [ "//third_party/boringssl" ]
246 } else { 246 } else {
247 deps = [ "//net/third_party/nss/ssl:libssl" ] 247 deps = [ "//net/third_party/nss/ssl:libssl" ]
248 if (is_linux) { 248 if (is_linux) {
249 # On Linux, we use the system NSS (excepting SSL where we always use our 249 # On Linux, we use the system NSS (excepting SSL where we always use our
250 # own). 250 # own).
251 # 251 #
252 # We always need our SSL header search path to come before the system one 252 # We always need our SSL header search path to come before the system one
253 # so our versions are used. The libssl target will add the search path we 253 # so our versions are used. The libssl target will add the search path we
254 # want, but according to GN's ordering rules, direct_dependent_configs' 254 # want, but according to GN's ordering rules, direct_dependent_configs'
255 # search path will get applied before ones inherited from our 255 # search path will get applied before ones inherited from our
256 # dependencies. Therefore, we need to explicitly list our custom libssl's 256 # dependencies. Therefore, we need to explicitly list our custom libssl's
257 # config here before the system one. 257 # config here before the system one.
258 direct_dependent_configs = [ 258 direct_dependent_configs = [
259 "//net/third_party/nss/ssl:ssl_config", 259 "//net/third_party/nss/ssl:ssl_config",
260 "//third_party/nss:system_nss_no_ssl_config", 260 "//third_party/nss:system_nss_no_ssl_config",
261 ] 261 ]
262 } else { 262 } else {
263 # Non-Linux platforms use the hermetic NSS from the tree. 263 # Non-Linux platforms use the hermetic NSS from the tree.
264 deps += [ 264 deps += [
265 "//third_party/nss:nspr", 265 "//third_party/nss:nspr",
266 "//third_party/nss:nss", 266 "//third_party/nss:nss",
267 ] 267 ]
268 } 268 }
269 } 269 }
270 } 270 }
OLDNEW
« no previous file with comments | « content/content_child.gypi ('k') | crypto/crypto.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698