2012-10-24 21:54:45 +00:00
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/subsys
|
|
|
|
${REACTOS_SOURCE_DIR}/win32ss/include)
|
|
|
|
|
|
|
|
spec2def(winsrv.dll winsrv.spec)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2012-10-25 20:40:41 +00:00
|
|
|
harderror.c
|
2012-10-24 21:54:45 +00:00
|
|
|
init.c
|
2013-03-09 21:08:23 +00:00
|
|
|
register.c
|
2012-10-25 20:40:41 +00:00
|
|
|
shutdown.c
|
2012-10-24 21:54:45 +00:00
|
|
|
winsrv.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winsrv.def)
|
|
|
|
|
|
|
|
add_library(winsrv SHARED ${SOURCE})
|
|
|
|
|
2012-10-25 22:14:46 +00:00
|
|
|
target_link_libraries(winsrv win32ksys ${PSEH_LIB}) # win32ksys because of NtUser...()
|
2012-10-24 21:54:45 +00:00
|
|
|
|
2013-01-13 19:17:29 +00:00
|
|
|
set_module_type(winsrv win32dll UNICODE)
|
2012-10-24 21:54:45 +00:00
|
|
|
|
|
|
|
add_importlibs(winsrv msvcrt kernel32 ntdll csrsrv)
|
|
|
|
add_delay_importlibs(winsrv user32 gdi32 advapi32)
|
|
|
|
|
|
|
|
add_dependencies(winsrv bugcodes)
|
|
|
|
add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)
|