mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
c321d3e88b
Because CRTs must be isolated from each other.
This basically reverts commit f0c91ae
25 lines
612 B
CMake
25 lines
612 B
CMake
|
|
spec2def(crtdll.dll crtdll.spec ADD_IMPORTLIB)
|
|
|
|
add_definitions(
|
|
-DUSE_MSVCRT_PREFIX
|
|
-D_MSVCRT_LIB_
|
|
-D_MSVCRT_
|
|
-DCRTDLL
|
|
-D_CTYPE_DISABLE_MACROS
|
|
-D_NO_INLINING
|
|
-D__MINGW_IMPORT="")
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/crt/include)
|
|
|
|
list(APPEND SOURCE
|
|
dllmain.c
|
|
crtdll.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/crtdll.def)
|
|
|
|
add_library(crtdll MODULE ${SOURCE})
|
|
set_module_type(crtdll win32dll ENTRYPOINT DllMain 12)
|
|
target_link_libraries(crtdll crt wine ${PSEH_LIB})
|
|
|
|
add_importlibs(crtdll kernel32 ntdll)
|
|
add_cd_file(TARGET crtdll DESTINATION reactos/system32 FOR all)
|