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)
192
192
if (NOT CRYPTO_LIBRARIES )
193
193
set (CRYPTO_LIBRARIES crypto )
194
194
endif ()
195
+ if (NOT CRYPTO_DLL )
196
+ set (CRYPTO_DLL crypto )
197
+ endif ()
195
198
196
199
set (MSVC_DISABLED_WARNINGS_LIST
197
200
"C4152" # nonstandard extension used: function/data pointer
@@ -437,6 +440,9 @@ message(STATUS "CRYPTO_LIBRARY_DIRS: ${CRYPTO_LIBRARY_DIRS}")
437
440
if (BUILD_TESTS )
438
441
message (STATUS "CRYPTO_BIN_DIRS: ${CRYPTO_BIN_DIRS} " )
439
442
endif ()
443
+ if (MSVC )
444
+ message (STATUS "CRYPTO_DLL: ${CRYPTO_DLL} " )
445
+ endif ()
440
446
message (STATUS "CRYPTO_VERSION: ${CRYPTO_VERSION} " )
441
447
message (STATUS "FIDO_VERSION: ${FIDO_VERSION} " )
442
448
message (STATUS "FUZZ: ${FUZZ} " )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if(MSVC AND BUILD_SHARED_LIBS)
18
18
add_custom_command (TARGET regress POST_BUILD
19
19
COMMAND "${CMAKE_COMMAND} " -E copy
20
20
"${CBOR_BIN_DIRS} /${CBOR_LIBRARIES} .dll"
21
- "${CRYPTO_BIN_DIRS} /${CRYPTO_LIBRARIES } .dll"
21
+ "${CRYPTO_BIN_DIRS} /${CRYPTO_DLL } .dll"
22
22
"${ZLIB_BIN_DIRS} /${ZLIB_LIBRARIES} .dll"
23
23
"$<TARGET_FILE:${_FIDO2_LIBRARY} >"
24
24
"${CMAKE_CURRENT_BINARY_DIR} " )
Original file line number Diff line number Diff line change @@ -231,7 +231,8 @@ try {
231
231
- DCRYPTO_INCLUDE_DIRS= " ${PREFIX} \include" `
232
232
- DCRYPTO_LIBRARY_DIRS= " ${PREFIX} \lib" `
233
233
- DCRYPTO_BIN_DIRS= " ${PREFIX} \bin" `
234
- - DCRYPTO_LIBRARIES= " ${CRYPTO_LIBRARIES} " `
234
+ - DCRYPTO_LIBRARIES= " ${CRYPTO_LIB} " `
235
+ - DCRYPTO_DLL= " ${CRYPTO_DLL} " `
235
236
- DCMAKE_C_FLAGS_DEBUG= " ${CFLAGS_DEBUG} ${Fido2Flags} " `
236
237
- DCMAKE_C_FLAGS_RELEASE= " ${CFLAGS_RELEASE} ${Fido2Flags} " `
237
238
- DCMAKE_INSTALL_PREFIX= " ${PREFIX} " ; `
@@ -243,7 +244,7 @@ try {
243
244
ExitOnError
244
245
# Copy DLLs.
245
246
if (" ${SHARED} " -eq " ON" ) {
246
- " cbor.dll" , " ${CRYPTO_LIBRARIES } .dll" , " zlib1.dll" | `
247
+ " cbor.dll" , " ${CRYPTO_DLL } .dll" , " zlib1.dll" | `
247
248
% { Copy-Item " ${PREFIX} \bin\$_ " `
248
249
- Destination " examples\${Config} " }
249
250
}
Original file line number Diff line number Diff line change 7
7
New-Variable - Name ' LIBRESSL_URL' `
8
8
- Value ' https://ftp.openbsd.org/pub/OpenBSD/LibreSSL' `
9
9
- 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
12
13
13
14
# libcbor coordinates.
14
15
New-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}) {
35
35
Copy-Item " ${SRC} \lib\cbor.lib" " ${DEST} "
36
36
Copy-Item " ${SRC} \bin\zlib1.dll" " ${DEST} "
37
37
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} "
40
40
Copy-Item " ${SRC} \bin\fido2.dll" " ${DEST} "
41
41
Copy-Item " ${SRC} \lib\fido2.lib" " ${DEST} "
42
42
}
43
43
44
44
Function Package-Static (${SRC} , ${DEST} ) {
45
45
Copy-Item " ${SRC} /lib/cbor.lib" " ${DEST} "
46
46
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} "
48
48
Copy-Item " ${SRC} /lib/fido2_static.lib" " ${DEST} /fido2.lib"
49
49
}
50
50
51
51
Function Package-PDBs (${SRC} , ${DEST} ) {
52
52
Copy-Item " ${SRC} \${LIBRESSL} \crypto\crypto_obj.dir\${Config} \crypto_obj.pdb" `
53
- " ${DEST} \${CRYPTO_LIBRARIES } .pdb"
53
+ " ${DEST} \${CRYPTO_LIB } .pdb"
54
54
Copy-Item " ${SRC} \${LIBCBOR} \src\cbor.dir\${Config} \vc${SDK} .pdb" `
55
55
" ${DEST} \cbor.pdb"
56
56
Copy-Item " ${SRC} \${ZLIB} \zlib.dir\${Config} \vc${SDK} .pdb" `
You can’t perform that action at this time.
0 commit comments