xref: /reactos/drivers/base/kdgdb/CMakeLists.txt (revision 8a978a17)
1
2spec2def(kdcom.dll kdgdb.spec ADD_IMPORTLIB)
3
4list(APPEND SOURCE
5    gdb_input.c
6    gdb_receive.c
7    gdb_send.c
8    kdcom.c
9    kdpacket.c
10    utils.c
11    kdgdb.h)
12
13# TODO: AMD64, ARM...
14if(ARCH STREQUAL "i386")
15    list(APPEND SOURCE i386_sup.c)
16endif()
17
18add_library(kdcom MODULE
19    ${SOURCE}
20    kdgdb.rc
21    ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
22
23set_module_type(kdcom module IMAGEBASE 0x00010000)
24set_subsystem(kdcom native)
25add_importlibs(kdcom ntoskrnl hal)
26target_link_libraries(kdcom cportlib)
27add_pch(kdcom kdgdb.h SOURCE)
28add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)
29