reactos/lib/rtl/CMakeLists.txt
Hermès Bélusca-Maïto e1ef078741 Create this branch to work on loading of different Kernel-Debugger DLL providers, and see whether it is possible to move KDBG from ntoskrnl to a new DLL called, say, KDROSDBG.DLL.
The idea then would be to have the following behaviour (when specifying the following options in the kernel command line):

/DEBUGPORT=COMi --> load KDCOM.DLL and use COMi port (i == 1,2,3,4) if possible.
/DEBUGPORT=FOO  --> load KDFOO.DLL (useful for KDUSB.DLL, KD1394.DLL, KDBAZIS.DLL for VirtualKD, etc...)
/DEBUGPORT=ROSDBG:[COMi|SCREEN|FILE|GDB|...] --> load KDROSDBG.DLL which contains the ROS kernel debugger, and use COMi or SCREEN or... as output port.

svn path=/branches/kd++/; revision=58883
2013-04-28 13:26:45 +00:00

111 lines
1.9 KiB
CMake

add_definitions(
-D_NTOSKRNL_
-DNO_RTL_INLINES
-D_NTSYSTEM_
-D_NTDLLBUILD_)
list(APPEND SOURCE
access.c
acl.c
actctx.c
assert.c
atom.c
avltable.c
bitmap.c
bootdata.c
compress.c
condvar.c
crc32.c
critical.c
dbgbuffer.c
debug.c
dos8dot3.c
encode.c
env.c
error.c
exception.c
generictable.c
handle.c
heap.c
heapdbg.c
heappage.c
heapuser.c
image.c
interlck.c
message.c
largeint.c
luid.c
network.c
nls.c
path.c
ppb.c
priv.c
process.c
propvar.c
random.c
rangelist.c
registry.c
res.c
resource.c
sd.c
security.c
slist.c
sid.c
srw.c
splaytree.c
thread.c
time.c
timezone.c
timerqueue.c
unicode.c
unicodeprefix.c
vectoreh.c
version.c
wait.c
workitem.c)
if(ARCH STREQUAL "i386")
list(APPEND ASM_SOURCE
i386/debug_asm.S
i386/except_asm.s
i386/interlck.S
i386/rtlmem.s
i386/rtlswap.S
i386/res_asm.s)
list(APPEND SOURCE
i386/except.c
i386/thread.c)
elseif(ARCH STREQUAL "amd64")
list(APPEND ASM_SOURCE
amd64/debug_asm.S
amd64/except_asm.S
amd64/slist.S)
list(APPEND SOURCE
bitmap64.c
byteswap.c
amd64/unwind.c
amd64/stubs.c
mem.c)
elseif(ARCH STREQUAL "arm")
list(APPEND ASM_SOURCE arm/debug_asm.S)
list(APPEND SOURCE
byteswap.c
mem.c)
elseif(ARCH STREQUAL "powerpc")
list(APPEND ASM_SOURCE
powerpc/rtlmem.s
powerpc/rtlswap.s)
list(APPEND SOURCE
byteswap.c
powerpc/debug.c
powerpc/except.c
powerpc/interlocked.c
powerpc/thread.c)
endif()
add_asm_files(rtl_asm ${ASM_SOURCE})
add_library(rtl ${SOURCE} ${rtl_asm})
add_pch(rtl rtl.h)
add_dependencies(rtl psdk asm)