mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00

[NTDLL-KERNEL32-BASESRV-WINSRV]: Specify by hand (hackz for MSVC builds) that the dll will be a "Console DLL" (ie. not a native one nor a Gui DLL). [BASESRV]: Explicitely set the DLL entry point to DllMain (unusued). [WINSRV]: Explicitely set the DLL entry point to DllMain (unusued) AND REMOVE usage of msvcrt (that might pose problems when testing with Windows msvcrt etc...) and use libcntpr instead. Thanks to Amine for having helped me in solving a problem with delayed imports. svn path=/trunk/; revision=59933
28 lines
708 B
CMake
28 lines
708 B
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
|
|
|
spec2def(basesrv.dll basesrv.spec)
|
|
|
|
list(APPEND SOURCE
|
|
dosdev.c
|
|
init.c
|
|
proc.c
|
|
sndsntry.c
|
|
vdm.c
|
|
nls.c
|
|
basesrv.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/basesrv.def)
|
|
|
|
add_library(basesrv SHARED ${SOURCE})
|
|
set_module_type(basesrv win32dll UNICODE ENTRYPOINT DllMain 12)
|
|
#############################################
|
|
## HACK FOR MSVC COMPILATION WITH win32dll ##
|
|
set_subsystem(basesrv console)
|
|
################# END HACK #################
|
|
|
|
target_link_libraries(basesrv ${PSEH_LIB})
|
|
|
|
add_importlibs(basesrv csrsrv ntdll)
|
|
|
|
add_dependencies(basesrv bugcodes)
|
|
add_cd_file(TARGET basesrv DESTINATION reactos/system32 FOR all)
|