2010-08-31 16:30:02 +00:00
|
|
|
|
2010-09-18 15:22:08 +00:00
|
|
|
|
2010-08-31 16:30:02 +00:00
|
|
|
|
|
|
|
spec2def(kdcom ${CMAKE_CURRENT_SOURCE_DIR}/kdcom.spec ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
add_library(kdcom SHARED ${SOURCE})
|
|
|
|
|
|
|
|
set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
|
|
|
|
|
|
|
|
target_link_libraries(kdcom
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def
|
2010-09-17 20:27:01 +00:00
|
|
|
-lntoskrnl
|
|
|
|
-lhal)
|
2010-08-31 16:30:02 +00:00
|
|
|
|
|
|
|
add_dependencies(kdcom kdcom_def psdk buildno_header bugcodes)
|
2010-10-22 13:46:11 +00:00
|
|
|
add_minicd_target(kdcom reactos kdcom.dll)
|
|
|
|
add_livecd_target(kdcom reactos/system32)
|