2010-08-14 10:10:21 +00:00
|
|
|
|
2010-09-18 15:22:08 +00:00
|
|
|
|
2010-08-14 10:10:21 +00:00
|
|
|
|
|
|
|
add_definitions(-DUSE_MSVCRT_PREFIX)
|
|
|
|
add_definitions(-D_MSVCRT_)
|
|
|
|
add_definitions(-D_MSVCRT_LIB_)
|
|
|
|
add_definitions(-D_MT)
|
|
|
|
add_definitions(-D_CTYPE_DISABLE_MACROS)
|
|
|
|
add_definitions(-D_NO_INLINING)
|
|
|
|
add_definitions(-DCRTDLL)
|
|
|
|
add_definitions(-D__MINGW_IMPORT="")
|
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE SOURCE *.c)
|
|
|
|
|
|
|
|
add_library(msvcrt SHARED
|
|
|
|
${SOURCE}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/msvcrt.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt_precomp.h.gch)
|
|
|
|
|
|
|
|
set_target_properties(msvcrt PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12 -u __seh_longjmp_unwind@4")
|
|
|
|
|
|
|
|
target_link_libraries(msvcrt ${CMAKE_CURRENT_SOURCE_DIR}/msvcrt.def
|
|
|
|
crt
|
|
|
|
wine
|
|
|
|
pseh
|
2010-09-17 20:27:01 +00:00
|
|
|
-lkernel32
|
|
|
|
-lntdll)
|
2010-08-14 10:10:21 +00:00
|
|
|
|
|
|
|
add_pch(msvcrt ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
|
|
|
add_dependencies(msvcrt psdk)
|