mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
23373acbb9
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
26 lines
774 B
CMake
26 lines
774 B
CMake
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
spec2def(samlib.dll samlib.spec ADD_IMPORTLIB)
|
|
add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/sam.idl)
|
|
|
|
list(APPEND SOURCE
|
|
dllmain.c
|
|
samlib.c
|
|
precomp.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/sam_c.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/samlib_stubs.c)
|
|
|
|
add_library(samlib MODULE
|
|
${SOURCE}
|
|
samlib.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
|
|
|
|
set_module_type(samlib win32dll UNICODE)
|
|
target_link_libraries(samlib wine ${PSEH_LIB})
|
|
add_importlibs(samlib rpcrt4 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(samlib precomp.h SOURCE)
|
|
add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)
|