File tree Expand file tree Collapse file tree 5 files changed +17
-9
lines changed
Expand file tree Collapse file tree 5 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,9 @@ if(MSVC)
192192 if (NOT CRYPTO_LIBRARIES)
193193 set (CRYPTO_LIBRARIES crypto)
194194 endif ()
195+ if (NOT CRYPTO_DLL)
196+ set (CRYPTO_DLL crypto)
197+ endif ()
195198
196199 set (MSVC_DISABLED_WARNINGS_LIST
197200 "C4152" # nonstandard extension used: function/data pointer
@@ -437,6 +440,9 @@ message(STATUS "CRYPTO_LIBRARY_DIRS: ${CRYPTO_LIBRARY_DIRS}")
437440if (BUILD_TESTS)
438441 message (STATUS "CRYPTO_BIN_DIRS: ${CRYPTO_BIN_DIRS} " )
439442endif ()
443+ if (MSVC )
444+ message (STATUS "CRYPTO_DLL: ${CRYPTO_DLL} " )
445+ endif ()
440446message (STATUS "CRYPTO_VERSION: ${CRYPTO_VERSION} " )
441447message (STATUS "FIDO_VERSION: ${FIDO_VERSION} " )
442448message (STATUS "FUZZ: ${FUZZ} " )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if(MSVC AND BUILD_SHARED_LIBS)
1818 add_custom_command (TARGET regress POST_BUILD
1919 COMMAND "${CMAKE_COMMAND} " -E copy
2020 "${CBOR_BIN_DIRS} /${CBOR_LIBRARIES} .dll"
21- "${CRYPTO_BIN_DIRS} /${CRYPTO_LIBRARIES } .dll"
21+ "${CRYPTO_BIN_DIRS} /${CRYPTO_DLL } .dll"
2222 "${ZLIB_BIN_DIRS} /${ZLIB_LIBRARIES} .dll"
2323 "$<TARGET_FILE :${_FIDO2_LIBRARY} >"
2424 "${CMAKE_CURRENT_BINARY_DIR} " )
Original file line number Diff line number Diff line change @@ -231,7 +231,8 @@ try {
231231 - DCRYPTO_INCLUDE_DIRS= " ${PREFIX} \include" `
232232 - DCRYPTO_LIBRARY_DIRS= " ${PREFIX} \lib" `
233233 - DCRYPTO_BIN_DIRS= " ${PREFIX} \bin" `
234- - DCRYPTO_LIBRARIES= " ${CRYPTO_LIBRARIES} " `
234+ - DCRYPTO_LIBRARIES= " ${CRYPTO_LIB} " `
235+ - DCRYPTO_DLL= " ${CRYPTO_DLL} " `
235236 - DCMAKE_C_FLAGS_DEBUG= " ${CFLAGS_DEBUG} ${Fido2Flags} " `
236237 - DCMAKE_C_FLAGS_RELEASE= " ${CFLAGS_RELEASE} ${Fido2Flags} " `
237238 - DCMAKE_INSTALL_PREFIX= " ${PREFIX} " ; `
@@ -243,7 +244,7 @@ try {
243244 ExitOnError
244245 # Copy DLLs.
245246 if (" ${SHARED} " -eq " ON" ) {
246- " cbor.dll" , " ${CRYPTO_LIBRARIES } .dll" , " zlib1.dll" | `
247+ " cbor.dll" , " ${CRYPTO_DLL } .dll" , " zlib1.dll" | `
247248 % { Copy-Item " ${PREFIX} \bin\$_ " `
248249 - Destination " examples\${Config} " }
249250 }
Original file line number Diff line number Diff line change 77New-Variable - Name ' LIBRESSL_URL' `
88 - Value ' https://ftp.openbsd.org/pub/OpenBSD/LibreSSL' `
99 - Option Constant
10- New-Variable - Name ' LIBRESSL' - Value ' libressl-3.9.2' - Option Constant
11- New-Variable - Name ' CRYPTO_LIBRARIES' - Value ' crypto' - Option Constant
10+ New-Variable - Name ' LIBRESSL' - Value ' libressl-4.0.0' - Option Constant
11+ New-Variable - Name ' CRYPTO_LIB' - Value ' crypto' - Option Constant
12+ New-Variable - Name ' CRYPTO_DLL' - Value ' crypto-55' - Option Constant
1213
1314# libcbor coordinates.
1415New-Variable - Name ' LIBCBOR' - Value ' libcbor-0.12.0' - Option Constant
Original file line number Diff line number Diff line change @@ -35,22 +35,22 @@ Function Package-Dynamic(${SRC}, ${DEST}) {
3535 Copy-Item " ${SRC} \lib\cbor.lib" " ${DEST} "
3636 Copy-Item " ${SRC} \bin\zlib1.dll" " ${DEST} "
3737 Copy-Item " ${SRC} \lib\zlib1.lib" " ${DEST} "
38- Copy-Item " ${SRC} \bin\${CRYPTO_LIBRARIES } .dll" " ${DEST} "
39- Copy-Item " ${SRC} \lib\${CRYPTO_LIBRARIES } .lib" " ${DEST} "
38+ Copy-Item " ${SRC} \bin\${CRYPTO_DLL } .dll" " ${DEST} "
39+ Copy-Item " ${SRC} \lib\${CRYPTO_LIB } .lib" " ${DEST} "
4040 Copy-Item " ${SRC} \bin\fido2.dll" " ${DEST} "
4141 Copy-Item " ${SRC} \lib\fido2.lib" " ${DEST} "
4242}
4343
4444Function Package-Static (${SRC} , ${DEST} ) {
4545 Copy-Item " ${SRC} /lib/cbor.lib" " ${DEST} "
4646 Copy-Item " ${SRC} /lib/zlib1.lib" " ${DEST} "
47- Copy-Item " ${SRC} /lib/${CRYPTO_LIBRARIES } .lib" " ${DEST} "
47+ Copy-Item " ${SRC} /lib/${CRYPTO_LIB } .lib" " ${DEST} "
4848 Copy-Item " ${SRC} /lib/fido2_static.lib" " ${DEST} /fido2.lib"
4949}
5050
5151Function Package-PDBs (${SRC} , ${DEST} ) {
5252 Copy-Item " ${SRC} \${LIBRESSL} \crypto\crypto_obj.dir\${Config} \crypto_obj.pdb" `
53- " ${DEST} \${CRYPTO_LIBRARIES } .pdb"
53+ " ${DEST} \${CRYPTO_LIB } .pdb"
5454 Copy-Item " ${SRC} \${LIBCBOR} \src\cbor.dir\${Config} \vc${SDK} .pdb" `
5555 " ${DEST} \cbor.pdb"
5656 Copy-Item " ${SRC} \${ZLIB} \zlib.dir\${Config} \vc${SDK} .pdb" `
You can’t perform that action at this time.
0 commit comments