reactos/win32ss/user/winsrv/CMakeLists.txt
Hermès Bélusca-Maïto 59f8611321
[WINSRV] Delay-load psapi.dll
Note that it is used only in debug builds in order to display the list
of processes being terminated in the debug log.
2024-02-22 22:41:06 +01:00

36 lines
1.1 KiB
CMake

# Console Configuration library
add_subdirectory(concfg)
include_directories(
${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys
${REACTOS_SOURCE_DIR}/win32ss/include)
spec2def(winsrv.dll winsrv.spec)
# The components
include(consrv.cmake)
include(usersrv.cmake)
list(APPEND SOURCE
init.c
winsrv.rc
${CMAKE_CURRENT_BINARY_DIR}/winsrv.def)
add_library(winsrv MODULE ${SOURCE})
set_module_type(winsrv win32dll UNICODE ENTRYPOINT DllMain 12)
#############################################
## HACK FOR MSVC COMPILATION WITH win32dll ##
set_subsystem(winsrv console)
################# END HACK #################
# Add the components
target_link_libraries(winsrv consrv usersrv)
# Add win32ksys because of NtUser...()
target_link_libraries(winsrv ${CONSRV_TARGET_LINK_LIBS} win32ksys libcntpr ${PSEH_LIB})
add_delay_importlibs(winsrv ${CONSRV_DELAY_IMPORT_LIBS} ${USERSRV_DELAY_IMPORT_LIBS} advapi32)
add_importlibs(winsrv ${CONSRV_IMPORT_LIBS} ${USERSRV_IMPORT_LIBS} csrsrv gdi32 user32 kernel32 ntdll)
add_dependencies(winsrv bugcodes xdk)
add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)