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
|
|
|
|
-D_CRYPT32_)
|
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
|
|
|
|
2019-04-01 15:55:03 +00:00
|
|
|
if(MSVC)
|
|
|
|
# error C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
|
|
|
|
replace_compile_flags("/we4312" " ")
|
|
|
|
endif()
|
|
|
|
|
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
|
|
|
|
str.c
|
2018-03-09 11:59:49 +00:00
|
|
|
precomp.h)
|
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}
|
|
|
|
crypt32.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/crypt32.def)
|
|
|
|
|
|
|
|
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)
|
|
|
|
add_pch(crypt32 precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all)
|