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