mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +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.
21 lines
505 B
CMake
21 lines
505 B
CMake
|
|
spec2def(kdcom.dll kdcom.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
kdcom.c
|
|
kddll.c
|
|
kdserial.c
|
|
kddll.h)
|
|
|
|
add_library(kdcom MODULE
|
|
${SOURCE}
|
|
kdcom.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
|
|
|
set_module_type(kdcom module IMAGEBASE 0x00010000)
|
|
set_subsystem(kdcom native)
|
|
add_importlibs(kdcom ntoskrnl hal)
|
|
target_link_libraries(kdcom cportlib)
|
|
add_dependencies(kdcom psdk bugcodes)
|
|
add_pch(kdcom kddll.h SOURCE)
|
|
add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)
|