[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.
This commit is contained in:
Hermès Bélusca-Maïto 2024-02-22 14:05:04 +01:00
parent 89cbab7c50
commit d21fbb54bd
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 5 additions and 4 deletions

View file

@ -29,7 +29,7 @@ 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} advapi32)
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)

View file

@ -57,7 +57,7 @@ target_link_libraries(consrv pseh)
add_dependencies(consrv psdk)
add_pch(consrv consrv/consrv.h CONSRV_SOURCE)
#add_object_library(consrv ${CONSRV_SOURCE})
list(APPEND CONSRV_IMPORT_LIBS psapi)
list(APPEND CONSRV_DELAY_IMPORT_LIBS shell32 ole32)
#list(APPEND CONSRV_IMPORT_LIBS)
list(APPEND CONSRV_DELAY_IMPORT_LIBS shell32 ole32 psapi)
list(APPEND CONSRV_TARGET_LINK_LIBS concfg uuid)
set_module_type(consrv module UNICODE)

View file

@ -14,5 +14,6 @@ target_link_libraries(usersrv pseh)
add_dependencies(usersrv xdk)
add_pch(usersrv usersrv/usersrv.h USERSRV_SOURCE)
#add_object_library(usersrv ${USERSRV_SOURCE})
list(APPEND USERSRV_IMPORT_LIBS basesrv psapi)
list(APPEND USERSRV_IMPORT_LIBS basesrv)
list(APPEND USERSRV_DELAY_IMPORT_LIBS psapi)
set_module_type(usersrv module UNICODE)