Skip to content

Commit c5cc644

Browse files
authored
Merge pull request #99 from D-Programming-Deimos/manual-link-config
Add a manual-linking configuration
2 parents 894e2bc + ec76b09 commit c5cc644

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

dub.sdl

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,33 @@ name "openssl"
22
description "Deimos bindings for the OpenSSL cryptographic library"
33
homepage "http://www.openssl.org/"
44
license "OpenSSL or SSLeay"
5-
libs "ssl" "crypto" platform="posix"
65

76
configuration "library-autodetect" {
87
targetType "sourceLibrary"
8+
libs "ssl" "crypto" platform="posix"
99
excludedSourceFiles "source/deimos/openssl/applink.d"
1010
preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix"
1111
versions `DeimosOpenSSLAutoDetect`
1212
}
1313

14+
// Requires a `versions "DeimosOpenSSL_3_0"` or `versions "DeimosOpenSSL_1_#_#"`
15+
// directive in a dependent package to select the right OpenSSL version
1416
configuration "library-manual-version" {
1517
targetType "sourceLibrary"
18+
libs "ssl" "crypto" platform="posix"
1619
excludedSourceFiles "source/deimos/openssl/applink.d"
1720
}
1821

1922
// Includes a module to replace `applink.c` as described in:
2023
// https://www.openssl.org/docs/manmaster/man3/OPENSSL_Applink.html
2124
configuration "library-applink" {
2225
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"
2334
}

0 commit comments

Comments
 (0)