2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/crt/include)
|
2011-08-28 18:28:18 +00:00
|
|
|
spec2def(msvcrt20.dll msvcrt20.spec)
|
|
|
|
|
2011-07-24 13:22:15 +00:00
|
|
|
add_definitions(
|
|
|
|
-DUSE_MSVCRT_PREFIX
|
|
|
|
-D_MSVCRT_
|
|
|
|
-D_MSVCRT_LIB_
|
|
|
|
-D_MT
|
|
|
|
-D_CTYPE_DISABLE_MACROS
|
|
|
|
-D_NO_INLINING
|
|
|
|
-DCRTDLL
|
|
|
|
-D__MINGW_IMPORT="")
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
msvcrt20.c
|
2011-07-23 22:47:04 +00:00
|
|
|
stubs.c
|
2011-07-21 18:40:41 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt20_stubs.c
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt20.def)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(msvcrt20 MODULE ${SOURCE})
|
2011-09-03 18:26:19 +00:00
|
|
|
set_module_type(msvcrt20 win32dll ENTRYPOINT DllMain 12)
|
2011-08-28 18:28:18 +00:00
|
|
|
add_dependencies(msvcrt20 psdk)
|
|
|
|
target_link_libraries(msvcrt20 crt wine ${PSEH_LIB})
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-08-23 08:13:33 +00:00
|
|
|
if(MSVC)
|
2011-08-28 18:28:18 +00:00
|
|
|
# export of deleting destructor "name"
|
2011-09-03 18:59:14 +00:00
|
|
|
add_target_link_flags(msvcrt20 "/ignore:4102")
|
2011-07-23 22:47:04 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_importlibs(msvcrt20 kernel32 ntdll)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET msvcrt20 DESTINATION reactos/system32 FOR all)
|