xref: /reactos/dll/win32/msvcrt20/CMakeLists.txt (revision 40462c92)
1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/crt/include)
3spec2def(msvcrt20.dll msvcrt20.spec)
4
5add_definitions(
6    -DUSE_MSVCRT_PREFIX
7    -D_MSVCRT_
8    -D_MSVCRT_LIB_
9    -D_MT
10    -D_CTYPE_DISABLE_MACROS
11    -D_NO_INLINING
12    -DCRTDLL
13    -D__MINGW_IMPORT="")
14
15list(APPEND SOURCE
16    msvcrt20.c
17    stubs.c
18    ${CMAKE_CURRENT_BINARY_DIR}/msvcrt20_stubs.c
19    ${CMAKE_CURRENT_BINARY_DIR}/msvcrt20.def)
20
21add_library(msvcrt20 MODULE ${SOURCE})
22set_module_type(msvcrt20 win32dll ENTRYPOINT DllMain 12)
23add_dependencies(msvcrt20 psdk)
24target_link_libraries(msvcrt20 crt wine ${PSEH_LIB})
25
26if(MSVC)
27    # export of deleting destructor "name"
28    add_target_link_flags(msvcrt20 "/ignore:4102")
29endif()
30
31add_importlibs(msvcrt20 kernel32 ntdll)
32add_cd_file(TARGET msvcrt20 DESTINATION reactos/system32 FOR all)
33