symmetryinvestments / imap-d

D library for IMAP (JMAP is a work-in-progress but the basics work)
14 stars 10 forks source link

Linking on Windows #96

Closed chrisoldwood closed 2 years ago

chrisoldwood commented 3 years ago

To link on Windows it needs libssl and libcrypto , so the libs needs extending:

libs "ssl" "crypto" platform="posix"
libs "libssl" "libcrypto" platform="windows-x86_64"
libs "libssl" "libcrypto" platform="windows-x86_mscoff"

This requires the libs to be on the linker path, which, when building as a SIL plugin requires lflags to be extended:

configuration "plugin" {
    . . .
    lflags "/LIBPATH:$KAL_EXT_LIB_WIN64" platform="windows-x86_64"
    lflags "/LIBPATH:$KAL_EXT_LIB_WIN32" platform="windows-x86_mscoff"
}