2011-05-16 13:12:07 +00:00
|
|
|
|
2012-04-18 17:18:11 +00:00
|
|
|
spec2def(crtdll.dll crtdll.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-DUSE_MSVCRT_PREFIX
|
|
|
|
-D_MSVCRT_LIB_
|
|
|
|
-D_MSVCRT_
|
|
|
|
-DCRTDLL
|
|
|
|
-D_CTYPE_DISABLE_MACROS
|
|
|
|
-D_NO_INLINING
|
|
|
|
-D__MINGW_IMPORT="")
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/crt/include)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
dllmain.c
|
|
|
|
crtdll.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/crtdll.def)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(crtdll MODULE ${SOURCE})
|
2011-09-06 17:31:25 +00:00
|
|
|
set_module_type(crtdll win32dll ENTRYPOINT DllMain 12)
|
2020-10-22 10:25:19 +00:00
|
|
|
target_link_libraries(crtdll crt wine ${PSEH_LIB})
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_importlibs(crtdll kernel32 ntdll)
|
|
|
|
add_cd_file(TARGET crtdll DESTINATION reactos/system32 FOR all)
|