Files
Timo Kreuzer 4bf2a30395 [WIDL] Remove a hack that inserted WIN32_LEAN_AND_MEAN into headers
This was supposedly to improve compile times, but it breaks our headers.
2026-05-11 18:21:34 +00:00

25 lines
763 B
CMake

include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/netlogon.idl)
spec2def(netlogon.dll netlogon.spec ADD_IMPORTLIB)
add_definitions(-DWIN32_LEAN_AND_MEAN=)
list(APPEND SOURCE
netlogon.c
rpcserver.c
precomp.h)
add_library(netlogon MODULE
${SOURCE}
netlogon.rc
${CMAKE_CURRENT_BINARY_DIR}/netlogon_s.c
${CMAKE_CURRENT_BINARY_DIR}/netlogon_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/netlogon.def)
set_module_type(netlogon win32dll UNICODE)
target_link_libraries(netlogon wine ${PSEH_LIB})
add_importlibs(netlogon advapi32 rpcrt4 msvcrt kernel32 ntdll)
add_pch(netlogon precomp.h SOURCE)
add_cd_file(TARGET netlogon DESTINATION reactos/system32 FOR all)