mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00

- Create a branch to drop my ndisuio work svn path=/branches/wlan-bringup/; revision=54809
40 lines
842 B
CMake
40 lines
842 B
CMake
|
|
spec2def(msvcrt.dll msvcrt.spec)
|
|
|
|
add_definitions(
|
|
-DUSE_MSVCRT_PREFIX
|
|
-D_MSVCRT_
|
|
-D_MSVCRT_LIB_
|
|
-D_MT
|
|
-D_CTYPE_DISABLE_MACROS
|
|
-D_NO_INLINING
|
|
-DCRTDLL
|
|
-D__MINGW_IMPORT="")
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/lib/sdk/crt/include)
|
|
|
|
set_rc_compiler()
|
|
|
|
list(APPEND SOURCE
|
|
dllmain.c
|
|
stubs.c
|
|
msvcrt.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/msvcrt.def)
|
|
|
|
add_library(msvcrt SHARED ${SOURCE})
|
|
|
|
set_module_type(msvcrt win32dll ENTRYPOINT DllMain 12)
|
|
|
|
add_dependencies(msvcrt psdk)
|
|
|
|
target_link_libraries(msvcrt crt wine ${PSEH_LIB})
|
|
|
|
if(MSVC)
|
|
# export of deleting destructor "name"
|
|
add_target_link_flags(msvcrt "/ignore:4102")
|
|
endif()
|
|
|
|
add_importlibs(msvcrt kernel32 ntdll)
|
|
add_pch(msvcrt precomp.h)
|
|
add_cd_file(TARGET msvcrt DESTINATION reactos/system32 FOR all)
|
|
add_importlib_target(msvcrt.spec)
|