1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
config("crssl_config") {
includes = [
"//net/third_party/nss/ssl",
]
}
component("ssl") {
external = true
# Not named "ssl" so the lib doesn't conflict with OpenSSL's libssl
output_name = "crssl"
sources = [
"authcert.c",
"cmpcert.c",
"derive.c",
"dtlscon.c",
#"os2_err.c",
#"os2_err.h",
"preenc.h",
"prelib.c",
"ssl.h",
"ssl3con.c",
"ssl3ecc.c",
"ssl3ext.c",
"ssl3gthr.c",
"ssl3prot.h",
"sslauth.c",
"sslcon.c",
"ssldef.c",
"sslenum.c",
"sslerr.c",
"sslerr.h",
"SSLerrs.h",
"sslerrstrs.c",
"sslgathr.c",
"sslimpl.h",
"sslinfo.c",
"sslinit.c",
"sslmutex.c",
"sslmutex.h",
"sslnonce.c",
"sslplatf.c",
"sslproto.h",
"sslreveal.c",
"sslsecur.c",
"sslsnce.c",
"sslsock.c",
"sslt.h",
"ssltrace.c",
"sslver.c",
"unix_err.c",
"unix_err.h",
"win32err.c",
"win32err.h",
"bodge/secitem_array.c",
]
defines = [
"NO_PKCS11_BYPASS",
"NSS_ENABLE_ECC",
"USE_UTIL_DIRECTLY",
]
configs -= "//build/config/compiler:chromium_code"
configs += "//build/config/compiler:no_chromium_code"
direct_dependent_configs = [ ":crssl_config" ]
if (is_win) {
sources -= [
"unix_err.c",
"unix_err.h",
]
} else {
sources -= [
"win32err.c",
"win32err.h",
]
}
if (is_linux) {
includes = [ "bodge" ]
configs += "//third_party/nss:nss_linux_config"
}
if (is_mac) {
sources -= "bodge/secitem_array.c"
}
}
|