2012-10-24 21:54:45 +00:00
|
|
|
|
2015-03-25 00:09:09 +00:00
|
|
|
# Console Configuration library
|
|
|
|
add_subdirectory(concfg)
|
|
|
|
|
2012-10-24 21:54:45 +00:00
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys
|
2015-03-06 14:33:02 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/win32ss/include)
|
2012-10-24 21:54:45 +00:00
|
|
|
|
|
|
|
spec2def(winsrv.dll winsrv.spec)
|
|
|
|
|
2013-07-13 04:54:49 +00:00
|
|
|
# The components
|
|
|
|
include(consrv.cmake)
|
|
|
|
include(usersrv.cmake)
|
|
|
|
|
2012-10-24 21:54:45 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
init.c
|
|
|
|
winsrv.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winsrv.def)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(winsrv MODULE ${SOURCE})
|
2013-09-01 00:11:56 +00:00
|
|
|
set_module_type(winsrv win32dll UNICODE ENTRYPOINT DllMain 12)
|
|
|
|
#############################################
|
|
|
|
## HACK FOR MSVC COMPILATION WITH win32dll ##
|
|
|
|
set_subsystem(winsrv console)
|
|
|
|
################# END HACK #################
|
2012-10-24 21:54:45 +00:00
|
|
|
|
2013-07-13 04:54:49 +00:00
|
|
|
# Add the components
|
|
|
|
target_link_libraries(winsrv consrv usersrv)
|
2013-07-14 11:33:26 +00:00
|
|
|
# Add win32ksys because of NtUser...()
|
2015-03-25 00:09:09 +00:00
|
|
|
target_link_libraries(winsrv ${CONSRV_TARGET_LINK_LIBS} win32ksys libcntpr ${PSEH_LIB})
|
2012-10-24 21:54:45 +00:00
|
|
|
|
2015-03-25 00:09:09 +00:00
|
|
|
add_delay_importlibs(winsrv ${CONSRV_DELAY_IMPORT_LIBS} advapi32)
|
|
|
|
add_importlibs(winsrv ${CONSRV_IMPORT_LIBS} ${USERSRV_IMPORT_LIBS} csrsrv gdi32 user32 kernel32 ntdll)
|
2015-09-07 10:05:42 +00:00
|
|
|
add_dependencies(winsrv bugcodes xdk)
|
2012-10-24 21:54:45 +00:00
|
|
|
add_cd_file(TARGET winsrv DESTINATION reactos/system32 FOR all)
|