2010-08-14 10:10:21 +00:00
|
|
|
|
2010-11-02 09:22:58 +00:00
|
|
|
spec2def(msvcrt.dll msvcrt.spec)
|
|
|
|
|
2010-10-08 21:02: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="")
|
2010-08-14 10:10:21 +00:00
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
|
|
|
|
|
2010-11-02 09:22:58 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
dllmain.c
|
|
|
|
msvcrt_stubs.c
|
|
|
|
msvcrt.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt.def)
|
2010-08-14 10:10:21 +00:00
|
|
|
|
|
|
|
add_library(msvcrt SHARED
|
2010-10-08 21:02:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt_precomp.h.gch
|
|
|
|
${SOURCE})
|
2010-08-14 10:10:21 +00:00
|
|
|
|
2010-10-08 21:02:11 +00:00
|
|
|
set_target_properties(msvcrt PROPERTIES LINK_FLAGS "-u __seh_longjmp_unwind@4")
|
|
|
|
set_module_type(msvcrt win32dll)
|
2010-08-14 10:10:21 +00:00
|
|
|
|
2010-10-08 21:02:11 +00:00
|
|
|
target_link_libraries(msvcrt
|
|
|
|
crt
|
|
|
|
wine
|
2010-11-01 17:24:32 +00:00
|
|
|
${PSEH_LIB})
|
2010-08-14 10:10:21 +00:00
|
|
|
|
|
|
|
add_pch(msvcrt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
2010-10-08 21:02:11 +00:00
|
|
|
add_importlibs(msvcrt kernel32 ntdll)
|
2010-10-30 09:53:53 +00:00
|
|
|
add_cab_target(msvcrt 1)
|
2010-11-02 09:22:58 +00:00
|
|
|
add_importlib_target(${CMAKE_CURRENT_BINARY_DIR}/msvcrt.def)
|
|
|
|
|