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

Side by Side Diff: tools/gn/secondary/net/third_party/nss/BUILD.gn

Issue 231673006: Add SSL support to the GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for minimal 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 | « tools/gn/secondary/net/BUILD.gn ('k') | tools/gn/secondary/third_party/nss/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
(Empty)
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
3 # found in the LICENSE file.
4
5 config("ssl_config") {
6 include_dirs = [
7 "//net/third_party/nss/ssl",
8 ]
9 }
10
11 # TODO(brettw) move this to net/third_party/nss/ssl once GYP backwards-compat
12 # is no longer needed.
13 component("ssl") {
14 # Not named "ssl" so the lib doesn't conflict with OpenSSL's libssl
15 output_name = "crssl"
16
17 sources = [
18 "ssl/authcert.c",
19 "ssl/cmpcert.c",
20 "ssl/derive.c",
21 "ssl/dtlscon.c",
22 #"ssl/os2_err.c",
23 #"ssl/os2_err.h",
24 "ssl/preenc.h",
25 "ssl/prelib.c",
26 "ssl/ssl.h",
27 "ssl/ssl3con.c",
28 "ssl/ssl3ecc.c",
29 "ssl/ssl3ext.c",
30 "ssl/ssl3gthr.c",
31 "ssl/ssl3prot.h",
32 "ssl/sslauth.c",
33 "ssl/sslcon.c",
34 "ssl/ssldef.c",
35 "ssl/sslenum.c",
36 "ssl/sslerr.c",
37 "ssl/sslerr.h",
38 "ssl/SSLerrs.h",
39 "ssl/sslerrstrs.c",
40 "ssl/sslgathr.c",
41 "ssl/sslimpl.h",
42 "ssl/sslinfo.c",
43 "ssl/sslinit.c",
44 "ssl/sslmutex.c",
45 "ssl/sslmutex.h",
46 "ssl/sslnonce.c",
47 "ssl/sslplatf.c",
48 "ssl/sslproto.h",
49 "ssl/sslreveal.c",
50 "ssl/sslsecur.c",
51 "ssl/sslsnce.c",
52 "ssl/sslsock.c",
53 "ssl/sslt.h",
54 "ssl/ssltrace.c",
55 "ssl/sslver.c",
56 "ssl/unix_err.c",
57 "ssl/unix_err.h",
58 "ssl/win32err.c",
59 "ssl/win32err.h",
60 "ssl/bodge/secitem_array.c",
61 ]
62
63 defines = [
64 "NO_PKCS11_BYPASS",
65 "NSS_ENABLE_ECC",
66 "USE_UTIL_DIRECTLY",
67 ]
68
69 configs -= [ "//build/config/compiler:chromium_code" ]
70 configs += [ "//build/config/compiler:no_chromium_code" ]
71
72 direct_dependent_configs = [ ":ssl_config" ]
73
74 if (is_win) {
75 sources -= [
76 "ssl/unix_err.c",
77 "ssl/unix_err.h",
78 ]
79 } else {
80 sources -= [
81 "ssl/win32err.c",
82 "ssl/win32err.h",
83 ]
84 }
85
86 if (is_linux) {
87 include_dirs = [ "ssl/bodge" ]
88 configs += [ "//third_party/nss:nss_linux_config" ]
89 }
90 if (is_mac) {
91 sources -= [ "ssl/bodge/secitem_array.c" ]
92 }
93 }
OLDNEW
« no previous file with comments | « tools/gn/secondary/net/BUILD.gn ('k') | tools/gn/secondary/third_party/nss/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698