2011-05-16 13:12:07 +00:00
|
|
|
|
2016-10-26 12:37:27 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
|
|
|
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl)
|
2015-05-06 12:47:20 +00:00
|
|
|
|
2020-08-26 22:12:20 +00:00
|
|
|
spec2def(spoolsv.exe spoolsv.spec ADD_IMPORTLIB)
|
|
|
|
|
2015-05-06 12:47:20 +00:00
|
|
|
list(APPEND SOURCE
|
2015-07-17 10:57:10 +00:00
|
|
|
forms.c
|
2015-05-12 14:43:25 +00:00
|
|
|
init.c
|
2015-06-22 14:31:47 +00:00
|
|
|
jobs.c
|
2015-05-06 12:47:20 +00:00
|
|
|
main.c
|
2015-07-16 13:59:20 +00:00
|
|
|
monitors.c
|
2015-07-17 10:57:10 +00:00
|
|
|
notifications.c
|
2015-07-16 13:59:20 +00:00
|
|
|
ports.c
|
2015-07-17 10:57:10 +00:00
|
|
|
precomp.h
|
|
|
|
printerdata.c
|
|
|
|
printerdrivers.c
|
2015-06-22 14:31:47 +00:00
|
|
|
printers.c
|
|
|
|
printprocessors.c
|
2015-07-17 10:57:10 +00:00
|
|
|
printproviders.c
|
2015-05-06 12:47:20 +00:00
|
|
|
rpcserver.c
|
2015-05-11 14:14:50 +00:00
|
|
|
rpcstubs.c
|
2020-08-02 19:49:06 +00:00
|
|
|
spoolfile.c
|
2015-07-17 10:57:10 +00:00
|
|
|
xcv.c
|
2021-12-04 00:08:20 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winspool_s.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/spoolsv_stubs.c)
|
2015-05-06 12:47:20 +00:00
|
|
|
|
2021-12-04 00:08:20 +00:00
|
|
|
add_executable(spoolsv
|
|
|
|
${SOURCE}
|
|
|
|
spoolsv.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/spoolsv.def)
|
|
|
|
|
|
|
|
set_target_properties(spoolsv
|
|
|
|
PROPERTIES
|
|
|
|
ENABLE_EXPORTS TRUE
|
|
|
|
DEFINE_SYMBOL "")
|
2017-12-07 22:26:59 +00:00
|
|
|
|
2022-05-25 23:03:50 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(spoolsv PRIVATE "-Wno-cast-calling-convention")
|
2017-12-07 22:26:59 +00:00
|
|
|
endif()
|
|
|
|
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(spoolsv win32cui UNICODE)
|
2015-05-06 12:47:20 +00:00
|
|
|
target_link_libraries(spoolsv wine)
|
2015-05-11 14:14:50 +00:00
|
|
|
add_delay_importlibs(spoolsv spoolss)
|
2015-05-12 14:56:54 +00:00
|
|
|
add_importlibs(spoolsv advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
2015-05-06 12:47:20 +00:00
|
|
|
add_pch(spoolsv precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET spoolsv DESTINATION reactos/system32 FOR all)
|