xref: /reactos/drivers/base/kdgdb/CMakeLists.txt (revision 1734f297)
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: ARM...
14if(ARCH STREQUAL "i386")
15    list(APPEND SOURCE i386_sup.c)
16elseif(ARCH STREQUAL "amd64")
17    list(APPEND SOURCE amd64_sup.c)
18endif()
19
20add_library(kdcom MODULE
21    ${SOURCE}
22    kdgdb.rc
23    ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
24
25set_module_type(kdcom kerneldll ENTRYPOINT 0)
26set_subsystem(kdcom native)
27add_importlibs(kdcom ntoskrnl hal)
28target_link_libraries(kdcom cportlib)
29add_pch(kdcom kdgdb.h SOURCE)
30add_cd_file(TARGET kdcom DESTINATION reactos/system32 NO_CAB FOR all)
31