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