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

Side by Side Diff: net/third_party/nss/ssl/BUILD.gn

Issue 231673006: Add SSL support to the GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments #2 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
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
8 if (is_mac || is_win) {
9 defines = [ "NSS_PLATFORM_CLIENT_AUTH" ]
10 }
11 }
12
13 component("libssl") {
14 output_name = "crssl"
15
16 sources = [
17 "authcert.c",
18 "cmpcert.c",
19 "derive.c",
20 "dtlscon.c",
21 "os2_err.c",
22 "os2_err.h",
Ryan Sleevi 2014/04/14 21:00:59 These two files are actually excluded on all platf
23 "preenc.h",
24 "prelib.c",
25 "ssl.h",
26 "ssl3con.c",
27 "ssl3ecc.c",
28 "ssl3ext.c",
29 "ssl3gthr.c",
30 "ssl3prot.h",
31 "sslauth.c",
32 "sslcon.c",
33 "ssldef.c",
34 "sslenum.c",
35 "sslerr.c",
36 "sslerr.h",
37 "SSLerrs.h",
38 "sslerrstrs.c",
39 "sslgathr.c",
40 "sslimpl.h",
41 "sslinfo.c",
42 "sslinit.c",
43 "sslmutex.c",
44 "sslmutex.h",
45 "sslnonce.c",
46 "sslplatf.c",
47 "sslproto.h",
48 "sslreveal.c",
49 "sslsecur.c",
50 "sslsnce.c",
51 "sslsock.c",
52 "sslt.h",
53 "ssltrace.c",
54 "sslver.c",
55 "unix_err.c",
56 "unix_err.h",
57 "win32err.c",
58 "win32err.h",
59 "bodge/secitem_array.c",
60 ]
61
62 direct_dependent_settings = [ ":ssl_config" ]
63
64 cflags = []
65 defines = [
66 "NO_PKCS11_BYPASS",
67 "NSS_ENABLE_ECC",
68 "USE_UTIL_DIRECTLY",
69 ]
70
71 configs -= [ "//build/config/compiler:chromium_code" ]
72 configs += [ "//build/config/compiler:no_chromium_code" ]
73
74 if (is_win) {
75 cflags += [ "/wd4267" ] # Disable warning: Conversion from size_t to 'type' .
76
77 sources -= [
78 "unix_err.c",
79 "unix_err.h",
80 ]
81 sources += [ "exports_win.def" ]
82 } else if (is_linux) {
83 #visibility hidden thing.
84 libs = [ "dl" ]
85
86 include_dirs = [ "bodge" ]
Ryan Sleevi 2014/04/14 21:00:59 Does this ensure bodge is included before the bits
brettw 2014/04/14 22:41:52 For this target, yes, but no dependents will get "
87
88 direct_dependent_configs = [
89 "//third_party/nss:system_nss_no_ssl_config"
90 ]
91 } else if (is_mac) {
92 libs = [ "Security.framework" ]
93 }
94
95 if (is_posix) {
96 sources -= [
97 "win32err.c",
98 "win32err.h",
99 ]
100 }
101
102 if (is_mac || is_ios) {
103 defines += [
104 "XP_UNIX",
105 "DARWIN",
106 "XP_MACOSX",
107 ]
108 }
109
110 if (is_mac || is_ios || is_win) {
111 sources -= [
112 "bodge/secitem_array.c",
113 ]
114 deps = [
115 "//third_party/nss:nspr",
116 "//third_party/nss:nss",
117 ]
118 forward_dependent_configs_from = deps
119 }
120
121 if (component_mode == "shared_library") {
122 # TODO(brettw) GCC_SYMBOLS_PRIVATE_EXTERN thing.
123 }
124
125 if (is_clang) {
126 cflags += [
127 # See http://crbug.com/138571#c8. In short, sslsecur.c picks up the
128 # system's cert.h because cert.h isn't in chromium's repo.
129 "-Wno-incompatible-pointer-types",
130
131 # There is a broken header guard in /usr/include/nss/secmod.h:
132 # https://bugzilla.mozilla.org/show_bug.cgi?id=884072
133 "-Wno-header-guard",
134 ]
135 }
136
137 if (is_debug) {
138 defines += [ "DEBUG" ]
139 }
140 }
OLDNEW
« crypto/BUILD.gn ('K') | « crypto/BUILD.gn ('k') | tools/gn/secondary/crypto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698