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

Side by Side Diff: tools/gn/secondary/crypto/ssl/BUILD.gn

Issue 139743009: Remove use_system_ssl GYP flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/linux/system.gyp ('k') | tools/gn/secondary/crypto/ssl/flags.gni » ('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("flags.gni") 5 import("flags.gni")
6 import("//build/config/linux/pkg_config.gni") 6 import("//build/config/linux/pkg_config.gni")
7 7
8 config("ssl_preprocessor_flags") { 8 config("ssl_preprocessor_flags") {
9 if (use_openssl) { 9 if (use_openssl) {
10 defines = [ "USE_OPENSSL" ] 10 defines = [ "USE_OPENSSL" ]
11 } else if (use_nss) { 11 } else if (use_nss) {
12 defines = [ "USE_NSS" ] 12 defines = [ "USE_NSS" ]
13 } 13 }
14 } 14 }
15 15
16 # Config for system SSL on Linux.
17 if (is_linux && use_system_ssl) {
18 pkg_config("system_ssl_config") {
19 packages = [ "nss" ]
20 defines = [ "USE_SYSTEM_SSL" ]
21 }
22 }
23
24 # This meta-target will include the SSL library according to the build flags. 16 # This meta-target will include the SSL library according to the build flags.
25 group("metassl") { 17 group("metassl") {
26 direct_dependent_configs = [ ":ssl_preprocessor_flags" ] 18 direct_dependent_configs = [ ":ssl_preprocessor_flags" ]
27 19
28 if (use_openssl) { 20 if (use_openssl) {
29 assert(is_linux) 21 assert(is_linux)
30 deps = "//third_party/openssl" 22 deps = "//third_party/openssl"
31 use_openssl = false 23 use_openssl = false
32 } else if (use_system_ssl) {
33 assert(is_linux)
34 direct_dependent_configs = ":system_ssl_config"
35 } else { 24 } else {
36 deps = [ "//net/third_party/nss:ssl" ] 25 deps = [ "//net/third_party/nss:ssl" ]
37 } 26 }
38 27
39 forward_dependent_configs_from = deps 28 forward_dependent_configs_from = deps
40 } 29 }
OLDNEW
« no previous file with comments | « build/linux/system.gyp ('k') | tools/gn/secondary/crypto/ssl/flags.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698