1 2spec2def(crtdll.dll crtdll.spec ADD_IMPORTLIB) 3 4add_definitions( 5 -DUSE_MSVCRT_PREFIX 6 -D_MSVCRT_LIB_ 7 -D_MSVCRT_ 8 -DCRTDLL 9 -D_CTYPE_DISABLE_MACROS 10 -D_NO_INLINING 11 -D__MINGW_IMPORT="") 12 13include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/crt/include) 14 15list(APPEND SOURCE 16 dllmain.c 17 crtdll.rc 18 ${CMAKE_CURRENT_BINARY_DIR}/crtdll.def) 19 20add_library(crtdll SHARED ${SOURCE}) 21set_module_type(crtdll win32dll ENTRYPOINT DllMain 12) 22target_link_libraries(crtdll crt wine) 23 24if(MSVC) 25 add_importlibs(crtdll msvcrt) 26 target_link_libraries(crtdll oldnames) 27endif() 28 29add_importlibs(crtdll kernel32 ntdll) 30add_cd_file(TARGET crtdll DESTINATION reactos/system32 FOR all) 31