reactos/drivers/base/kdgdb/CMakeLists.txt

31 lines
661 B
Text
Raw Normal View History

spec2def(kdcom.dll kdgdb.spec ADD_IMPORTLIB)
list(APPEND SOURCE
gdb_input.c
gdb_receive.c
gdb_send.c
kdcom.c
kdpacket.c
utils.c
kdgdb.h)
2021-04-14 11:36:17 +00:00
# TODO: ARM...
if(ARCH STREQUAL "i386")
list(APPEND SOURCE i386_sup.c)
2021-04-14 11:36:17 +00:00
elseif(ARCH STREQUAL "amd64")
list(APPEND SOURCE amd64_sup.c)
endif()
add_library(kdcom MODULE
${SOURCE}
kdgdb.rc
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
set_module_type(kdcom kerneldll ENTRYPOINT 0)
set_subsystem(kdcom native)
add_importlibs(kdcom ntoskrnl hal)
target_link_libraries(kdcom cportlib)
add_pch(kdcom kdgdb.h SOURCE)
add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)