blob: 84e466fa33faef0a4ba1bed04c5857acadaad38c (
plain)
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
|
// -*- MPC -*-
// openssl is a completely different feature than ssl.
// Currently ssl uses openssl, and openssl is enabled by
// default. If we ever add a new ssl library, then you
// would likely enable only one ssl library feature.
feature(openssl) {
expand(SSL_INCDIR) {
$SSL_INCDIR
$(SSL_ROOT)/include
}
expand(SSL_LIBDIR) {
$SSL_LIBDIR
$(SSL_ROOT)/lib
}
specific(!cmake) {
includes += $(SSL_INCDIR)
libpaths += $(SSL_LIBDIR)
}
specific(prop:windows) {
lit_libs += libeay32 ssleay32
includes += $(SSL_ROOT)/inc32
libpaths += $(SSL_ROOT)/out32dll $(SSL_ROOT)/out32
} else {
lit_libs += ssl crypto
// Some Linux OpenSSL installations compile in Kerberos support. Add
// the Kerberos include path to preprocessor include path.
includes += /usr/kerberos/include
}
// Some prepackaged installations of OpenSSL have libraries in different
// locations.
specific(prop:borland) {
libpaths += $(SSL_ROOT)/lib/Builder5
}
specific(prop:microsoft) {
libpaths += $(SSL_ROOT)/lib/VC
}
specific(cmake) {
// Undo the else of the !prop:windows above.
lit_libs -= ssl crypto
includes -= /usr/kerberos/include
lit_libs += ${OPENSSL_LIBRARIES}
includes += ${OPENSSL_INCLUDE_DIR}
}
}
feature(openssl11) {
specific(prop:windows) {
lit_libs -= libeay32 ssleay32
lit_libs += libssl libcrypto
}
}
|