reactos/win32ss/printing/base/winspool/CMakeLists.txt
Colin Finck f3ea8225cb [PRINTING] Implement the undocumented MarshallDownStructure, MarshallDownStructuresArray, MarshallUpStructure, and MarshallUpStructuresArray to the extent I need and could find out through black-box testing.
PDBs reveal that these functions are also used in winspool.drv, but not imported from spoolss.dll to retain the client/server architecture.
As winspool.drv highly benefits from the MarshallUp* functions, I put them in a source file shared between spoolss.dll and winspool.drv.

The added API Tests cover my testing and all implemented features.
One more item done from https://reactos.org/wiki/Printing !
2018-01-17 10:13:25 +01:00

34 lines
947 B
CMake

include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl)
spec2def(winspool.drv winspool.spec ADD_IMPORTLIB)
list(APPEND SOURCE
../marshalling.c
devmode.c
forms.c
jobs.c
main.c
monitors.c
ports.c
precomp.h
printerdata.c
printerdrivers.c
printers.c
printprocessors.c
printproviders.c
${CMAKE_CURRENT_BINARY_DIR}/winspool_c.c)
add_library(winspool SHARED
${SOURCE}
winspool.rc
${CMAKE_CURRENT_BINARY_DIR}/winspool_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/winspool.def)
set_target_properties(winspool PROPERTIES SUFFIX ".drv")
set_module_type(winspool win32dll UNICODE)
target_link_libraries(winspool wine ${PSEH_LIB})
add_importlibs(winspool advapi32 gdi32 rpcrt4 msvcrt kernel32 ntdll)
add_pch(winspool precomp.h SOURCE)
add_cd_file(TARGET winspool DESTINATION reactos/system32 FOR all)