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(msvcrt40.dll msvcrt40.spec)
|
|
|
|
|
2011-07-24 13:31:11 +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
|
|
|
|
msvcrt40.c
|
2011-07-24 13:31:11 +00:00
|
|
|
stubs.c
|
2011-07-21 18:40:41 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt40_stubs.c
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt40.def)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(msvcrt40 MODULE ${SOURCE})
|
2011-09-03 18:26:19 +00:00
|
|
|
set_module_type(msvcrt40 win32dll ENTRYPOINT DllMain 12)
|
2011-08-28 18:28:18 +00:00
|
|
|
add_dependencies(msvcrt40 psdk)
|
|
|
|
target_link_libraries(msvcrt40 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(msvcrt40 "/ignore:4102")
|
2011-07-24 13:31:11 +00:00
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-07-24 13:31:11 +00:00
|
|
|
add_importlibs(msvcrt40 kernel32 ntdll)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET msvcrt40 DESTINATION reactos/system32 FOR all)
|