1 2remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502) 3add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600) 4 5add_definitions( 6 -D__WINESRC__ 7 -D__ROS_LONG64__ 8 -D_WINE 9 -D_CRYPT32_) 10 11include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 12spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB) 13 14list(APPEND SOURCE 15 base64.c 16 cert.c 17 chain.c 18 collectionstore.c 19 context.c 20 crl.c 21 ctl.c 22 decode.c 23 encode.c 24 filestore.c 25 main.c 26 message.c 27 msg.c 28 object.c 29 oid.c 30 proplist.c 31 protectdata.c 32 provstore.c 33 regstore.c 34 rootstore.c 35 serialize.c 36 sip.c 37 store.c 38 str.c) 39 40list(APPEND PCH_SKIP_SOURCE 41 ${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c) 42 43add_library(crypt32 MODULE 44 ${SOURCE} 45 ${PCH_SKIP_SOURCE} 46 crypt32.rc 47 ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def) 48 49if(MSVC) 50 # Disable warning C4090: 'function': different 'const' qualifiers 51 # Disable warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size 52 target_compile_options(crypt32 PRIVATE /wd4090 /wd4312) 53endif() 54 55set_module_type(crypt32 win32dll) 56target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames) 57add_delay_importlibs(crypt32 cryptnet) 58add_importlibs(crypt32 bcrypt user32 advapi32 advapi32_vista msvcrt kernel32 ntdll) 59add_pch(crypt32 precomp.h "${PCH_SKIP_SOURCE}") 60add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all) 61