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_WINE 8 -D_CRYPT32_) 9 10include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 11spec2def(crypt32.dll crypt32.spec ADD_IMPORTLIB) 12 13list(APPEND SOURCE 14 base64.c 15 cert.c 16 chain.c 17 collectionstore.c 18 context.c 19 crl.c 20 ctl.c 21 decode.c 22 encode.c 23 filestore.c 24 main.c 25 message.c 26 msg.c 27 object.c 28 oid.c 29 proplist.c 30 protectdata.c 31 provstore.c 32 regstore.c 33 rootstore.c 34 serialize.c 35 sip.c 36 store.c 37 str.c 38 precomp.h) 39 40add_library(crypt32 SHARED 41 ${SOURCE} 42 crypt32.rc 43 ${CMAKE_CURRENT_BINARY_DIR}/crypt32_stubs.c 44 ${CMAKE_CURRENT_BINARY_DIR}/crypt32.def) 45 46set_module_type(crypt32 win32dll) 47target_link_libraries(crypt32 wine ${PSEH_LIB} oldnames) 48add_delay_importlibs(crypt32 cryptnet) 49add_importlibs(crypt32 bcrypt user32 advapi32 advapi32_vista msvcrt kernel32 ntdll) 50add_pch(crypt32 precomp.h SOURCE) 51add_cd_file(TARGET crypt32 DESTINATION reactos/system32 FOR all) 52