Skip to content

Commit

Permalink
Merge pull request #99 from D-Programming-Deimos/manual-link-config
Browse files Browse the repository at this point in the history
Add a manual-linking configuration
  • Loading branch information
s-ludwig committed Feb 18, 2023
2 parents 894e2bc + ec76b09 commit c5cc644
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,33 @@ name "openssl"
description "Deimos bindings for the OpenSSL cryptographic library"
homepage "http://www.openssl.org/"
license "OpenSSL or SSLeay"
libs "ssl" "crypto" platform="posix"

configuration "library-autodetect" {
targetType "sourceLibrary"
libs "ssl" "crypto" platform="posix"
excludedSourceFiles "source/deimos/openssl/applink.d"
preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix"
versions `DeimosOpenSSLAutoDetect`
}

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

// Includes a module to replace `applink.c` as described in:
// https://www.openssl.org/docs/manmaster/man3/OPENSSL_Applink.html
configuration "library-applink" {
targetType "sourceLibrary"
libs "ssl" "crypto" platform="posix"
}

// See the "library-manual-version" configuration for how to
// select the OpenSSL version
configuration "library-manual-link" {
targetType "sourceLibrary"
excludedSourceFiles "source/deimos/openssl/applink.d"
}

0 comments on commit c5cc644

Please sign in to comment.