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

Side by Side Diff: crypto/BUILD.gn

Issue 236713002: Implement net in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « build/config/linux/BUILD.gn ('k') | net/BUILD.gn » ('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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 # according to the state of the crypto flags. A target just wanting to depend 257 # according to the state of the crypto flags. A target just wanting to depend
258 # on the current SSL library should just depend on this. 258 # on the current SSL library should just depend on this.
259 group("platform") { 259 group("platform") {
260 if (use_openssl) { 260 if (use_openssl) {
261 deps = [ "//third_party/openssl" ] 261 deps = [ "//third_party/openssl" ]
262 } else { 262 } else {
263 deps = [ "//net/third_party/nss/ssl:libssl" ] 263 deps = [ "//net/third_party/nss/ssl:libssl" ]
264 if (is_linux) { 264 if (is_linux) {
265 # On Linux, we use the system NSS (excepting SSL where we always use our 265 # On Linux, we use the system NSS (excepting SSL where we always use our
266 # own). 266 # own).
267 #
268 # We always need our SSL header search path to come before the system one
269 # so our versions are used. The libssl target will add the search path we
270 # want, but according to GN's ordering rules, direct_dependent_configs'
271 # search path will get applied before ones inherited from our
272 # dependencies. Therefore, we need to explicitly list our custom libssl's
273 # config here before the system one.
267 direct_dependent_configs = [ 274 direct_dependent_configs = [
268 "//third_party/nss:system_nss_no_ssl_config" 275 "//net/third_party/nss/ssl:ssl_config",
276 "//third_party/nss:system_nss_no_ssl_config",
269 ] 277 ]
270 } else { 278 } else {
271 # Non-Linux platforms use the hermetic NSS from the tree. 279 # Non-Linux platforms use the hermetic NSS from the tree.
272 deps += [ 280 deps += [
273 "//third_party/nss:nspr", 281 "//third_party/nss:nspr",
274 "//third_party/nss:nss", 282 "//third_party/nss:nss",
275 ] 283 ]
276 } 284 }
277 } 285 }
278 } 286 }
OLDNEW
« no previous file with comments | « build/config/linux/BUILD.gn ('k') | net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698