1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
3add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl)
4spec2def(winspool.drv winspool.spec ADD_IMPORTLIB)
5
6list(APPEND SOURCE
7    ../marshalling.c
8    devmode.c
9    forms.c
10    jobs.c
11    main.c
12    monitors.c
13    ports.c
14    printerdata.c
15    printerdrivers.c
16    printers.c
17    printprocessors.c
18    printproviders.c
19    spoolfile.c
20    utils.c
21    ${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c)
22
23list(APPEND PCH_SKIP_SOURCE
24    ${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c)
25
26add_library(winspool MODULE
27    ${SOURCE}
28    ${PCH_SKIP_SOURCE}
29    winspool.rc
30    ${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
31
32set_target_properties(winspool PROPERTIES SUFFIX ".drv")
33set_module_type(winspool win32dll UNICODE)
34target_link_libraries(winspool wine ${PSEH_LIB})
35add_importlibs(winspool advapi32 gdi32 user32 rpcrt4 msvcrt kernel32 ntdll)
36add_pch(winspool precomp.h "${PCH_SKIP_SOURCE}")
37add_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all)
38