2011-05-16 13:12:07 +00:00
|
|
|
|
2015-11-17 21:12:00 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
2020-03-26 13:40:39 +00:00
|
|
|
-D__ROS_LONG64__
|
2013-04-03 22:43:22 +00:00
|
|
|
-D_WINE
|
2024-05-21 16:33:42 +00:00
|
|
|
-D_CRYPT32_
|
|
|
|
-Dstrncasecmp=_strnicmp
|
|
|
|
)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
base64.c
|
|
|
|
cert.c
|
|
|
|
chain.c
|
|
|
|
collectionstore.c
|
|
|
|
context.c
|
|
|
|
crl.c
|
|
|
|
ctl.c
|
|
|
|
decode.c
|
|
|
|
encode.c
|
|
|
|
filestore.c
|
|
|
|
main.c
|
|
|
|
message.c
|
|
|
|
msg.c
|
|
|
|
object.c
|
|
|
|
oid.c
|
|
|
|
proplist.c
|
|
|
|
protectdata.c
|
|
|
|
provstore.c
|
|
|
|
regstore.c
|
|
|
|
rootstore.c
|
|
|
|
serialize.c
|
|
|
|
sip.c
|
|
|
|
store.c
|
2020-05-09 21:37:40 +00:00
|
|
|
str.c)
|
|
|
|
|
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c)
|
2014-02-10 12:19:56 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(crypt32 MODULE
|
2014-02-10 12:19:56 +00:00
|
|
|
${SOURCE}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2014-02-10 12:19:56 +00:00
|
|
|
crypt32.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
|
|
|
|
|
2020-09-18 09:49:18 +00:00
|
|
|
if(MSVC)
|
2021-06-29 08:03:28 +00:00
|
|
|
# Disable warning C4090: 'function': different 'const' qualifiers
|
|
|
|
# Disable warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
|
|
|
|
target_compile_options(crypt32 PRIVATE /wd4090 /wd4312)
|
2020-09-18 09:49:18 +00:00
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(crypt32 win32dll)
|
2012-02-20 22:08:14 +00:00
|
|
|
target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames)
|
2014-04-22 15:10:43 +00:00
|
|
|
add_delay_importlibs(crypt32 cryptnet)
|
2018-03-09 11:59:49 +00:00
|
|
|
add_importlibs(crypt32 bcrypt user32 advapi32 advapi32_vista msvcrt kernel32 ntdll)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(crypt32 precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)
|