mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
957e566a23
This became a requirement, following a previous CMake update.
Otherwise the built EXEs would not export their intended functions.
Addendum to commit d8e92b5a
(see PR #1335)
CORE-15406
[LOADCONFIG] The GCC rant had nothing to do with GCC, but everything with CMake...
[SPOOLSV] Add the missing exported stubs.
48 lines
1.1 KiB
CMake
48 lines
1.1 KiB
CMake
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
|
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winspool.idl)
|
|
|
|
spec2def(spoolsv.exe spoolsv.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
forms.c
|
|
init.c
|
|
jobs.c
|
|
main.c
|
|
monitors.c
|
|
notifications.c
|
|
ports.c
|
|
precomp.h
|
|
printerdata.c
|
|
printerdrivers.c
|
|
printers.c
|
|
printprocessors.c
|
|
printproviders.c
|
|
rpcserver.c
|
|
rpcstubs.c
|
|
spoolfile.c
|
|
xcv.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/winspool_s.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/spoolsv_stubs.c)
|
|
|
|
add_executable(spoolsv
|
|
${SOURCE}
|
|
spoolsv.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/spoolsv.def)
|
|
|
|
set_target_properties(spoolsv
|
|
PROPERTIES
|
|
ENABLE_EXPORTS TRUE
|
|
DEFINE_SYMBOL "")
|
|
|
|
if(USE_CLANG_CL)
|
|
target_compile_options(spoolsv PRIVATE "-Wno-cast-calling-convention")
|
|
endif()
|
|
|
|
set_module_type(spoolsv win32cui UNICODE)
|
|
target_link_libraries(spoolsv wine)
|
|
add_delay_importlibs(spoolsv spoolss)
|
|
add_importlibs(spoolsv advapi32 rpcrt4 msvcrt kernel32 ntdll)
|
|
add_pch(spoolsv precomp.h SOURCE)
|
|
add_cd_file(TARGET spoolsv DESTINATION reactos/system32 FOR all)
|