@@ -2,22 +2,33 @@ name "openssl"
2
2
description "Deimos bindings for the OpenSSL cryptographic library"
3
3
homepage "http://www.openssl.org/"
4
4
license "OpenSSL or SSLeay"
5
- libs "ssl" "crypto" platform="posix"
6
5
7
6
configuration "library-autodetect" {
8
7
targetType "sourceLibrary"
8
+ libs "ssl" "crypto" platform="posix"
9
9
excludedSourceFiles "source/deimos/openssl/applink.d"
10
10
preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix"
11
11
versions `DeimosOpenSSLAutoDetect`
12
12
}
13
13
14
+ // Requires a `versions "DeimosOpenSSL_3_0"` or `versions "DeimosOpenSSL_1_#_#"`
15
+ // directive in a dependent package to select the right OpenSSL version
14
16
configuration "library-manual-version" {
15
17
targetType "sourceLibrary"
18
+ libs "ssl" "crypto" platform="posix"
16
19
excludedSourceFiles "source/deimos/openssl/applink.d"
17
20
}
18
21
19
22
// Includes a module to replace `applink.c` as described in:
20
23
// https://www.openssl.org/docs/manmaster/man3/OPENSSL_Applink.html
21
24
configuration "library-applink" {
22
25
targetType "sourceLibrary"
26
+ libs "ssl" "crypto" platform="posix"
27
+ }
28
+
29
+ // See the "library-manual-version" configuration for how to
30
+ // select the OpenSSL version
31
+ configuration "library-manual-link" {
32
+ targetType "sourceLibrary"
33
+ excludedSourceFiles "source/deimos/openssl/applink.d"
23
34
}
0 commit comments