2014-09-11 20:55:42 +00:00
|
|
|
|
|
|
|
spec2def(kdcom.dll kdgdb.spec ADD_IMPORTLIB)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2014-10-17 23:28:29 +00:00
|
|
|
gdb_input.c
|
|
|
|
gdb_receive.c
|
|
|
|
gdb_send.c
|
2014-09-11 20:55:42 +00:00
|
|
|
kdcom.c
|
|
|
|
kdpacket.c
|
2014-09-15 22:05:21 +00:00
|
|
|
utils.c
|
2014-09-11 20:55:42 +00:00
|
|
|
kdgdb.h)
|
|
|
|
|
2021-04-14 11:36:17 +00:00
|
|
|
# TODO: ARM...
|
2014-09-11 20:55:42 +00:00
|
|
|
if(ARCH STREQUAL "i386")
|
2014-10-17 23:28:29 +00:00
|
|
|
list(APPEND SOURCE i386_sup.c)
|
2021-04-14 11:36:17 +00:00
|
|
|
elseif(ARCH STREQUAL "amd64")
|
|
|
|
list(APPEND SOURCE amd64_sup.c)
|
2014-09-11 20:55:42 +00:00
|
|
|
endif()
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(kdcom MODULE
|
2014-09-11 20:55:42 +00:00
|
|
|
${SOURCE}
|
|
|
|
kdgdb.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
|
|
|
|
2021-03-24 13:26:15 +00:00
|
|
|
set_module_type(kdcom kerneldll ENTRYPOINT 0)
|
2014-09-11 20:55:42 +00:00
|
|
|
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)
|