2010-08-31 16:30:02 +00:00
|
|
|
|
2010-10-30 16:08:19 +00:00
|
|
|
spec2def(kdcom.dll kdcom.spec)
|
2010-08-31 16:30:02 +00:00
|
|
|
|
|
|
|
if(ARCH MATCHES i386)
|
|
|
|
list(APPEND SOURCE i386/kdbg.c)
|
|
|
|
elseif(ARCH MATCHES amd64)
|
|
|
|
list(APPEND SOURCE i386/kdbg.c)
|
|
|
|
elseif(ARCH MATCHES arm)
|
|
|
|
list(APPEND SOURCE arm/kdbg.c)
|
|
|
|
endif(ARCH MATCHES i386)
|
2010-10-30 16:08:19 +00:00
|
|
|
list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
2010-08-31 16:30:02 +00:00
|
|
|
|
|
|
|
add_library(kdcom SHARED ${SOURCE})
|
|
|
|
|
2010-11-04 20:46:27 +00:00
|
|
|
set_entrypoint(kdcom 0)
|
|
|
|
set_subsystem(kdcom native)
|
|
|
|
set_image_base(kdcom 0x00010000)
|
2010-08-31 16:30:02 +00:00
|
|
|
|
2010-11-04 20:46:27 +00:00
|
|
|
add_importlibs(kdcom ntoskrnl hal)
|
2010-08-31 16:30:02 +00:00
|
|
|
|
2010-10-30 16:08:19 +00:00
|
|
|
add_dependencies(kdcom psdk buildno_header bugcodes)
|
2010-10-22 13:46:11 +00:00
|
|
|
add_minicd_target(kdcom reactos kdcom.dll)
|
2010-11-04 20:46:27 +00:00
|
|
|
add_livecd_target(kdcom reactos/system32)
|