2010-08-22 22:52:07 +00:00
|
|
|
|
2010-10-02 22:19:59 +00:00
|
|
|
add_definitions(
|
|
|
|
-DUSE_MSVCRT_PREFIX
|
|
|
|
-D_MSVCRT_LIB_
|
|
|
|
-D_MSVCRT_
|
|
|
|
-DCRTDLL
|
|
|
|
-D_CTYPE_DISABLE_MACROS
|
|
|
|
-D_NO_INLINING
|
|
|
|
-D__MINGW_IMPORT="")
|
2010-08-22 22:52:07 +00:00
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
|
|
|
|
|
2010-10-30 16:08:19 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
dllmain.c
|
|
|
|
crtdll.rc
|
2010-11-02 18:19:44 +00:00
|
|
|
crtdll.def)
|
|
|
|
|
|
|
|
if(NOT MSVC)
|
|
|
|
set_source_files_properties(crtdll.def PROPERTIES EXTERNAL_OBJECT TRUE)
|
|
|
|
endif()
|
2010-08-22 22:52:07 +00:00
|
|
|
|
|
|
|
add_library(crtdll SHARED
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/crtdll_precomp.h.gch
|
|
|
|
${SOURCE})
|
|
|
|
|
2010-10-02 22:19:59 +00:00
|
|
|
set_module_type(crtdll win32dll)
|
2010-08-22 22:52:07 +00:00
|
|
|
|
|
|
|
target_link_libraries(crtdll
|
|
|
|
wine
|
2010-10-02 22:19:59 +00:00
|
|
|
crt)
|
2010-08-22 22:52:07 +00:00
|
|
|
|
2010-11-27 00:36:28 +00:00
|
|
|
add_importlibs(crtdll msvcrt kernel32 ntdll)
|
2010-08-22 22:52:07 +00:00
|
|
|
add_pch(crtdll ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
|
2010-10-30 16:08:19 +00:00
|
|
|
|
2010-10-30 09:53:53 +00:00
|
|
|
add_cab_target(crtdll 1)
|