2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-D_NTOSKRNL_
|
|
|
|
-DNO_RTL_INLINES
|
|
|
|
-D_NTSYSTEM_
|
|
|
|
-D_NTDLLBUILD_)
|
|
|
|
|
2022-05-25 22:37:23 +00:00
|
|
|
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2021-06-17 12:48:52 +00:00
|
|
|
# Enable this again. CORE-17637
|
|
|
|
add_compile_options(-Wunused-result)
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
access.c
|
|
|
|
acl.c
|
|
|
|
actctx.c
|
2015-06-21 16:38:44 +00:00
|
|
|
appverifier.c
|
2011-05-16 13:12:07 +00:00
|
|
|
assert.c
|
|
|
|
atom.c
|
|
|
|
avltable.c
|
|
|
|
bitmap.c
|
|
|
|
bootdata.c
|
|
|
|
compress.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
|
2013-01-08 20:33:08 +00:00
|
|
|
heappage.c
|
2013-01-14 09:35:50 +00:00
|
|
|
heapuser.c
|
2011-05-16 13:12:07 +00:00
|
|
|
image.c
|
|
|
|
interlck.c
|
|
|
|
largeint.c
|
|
|
|
luid.c
|
2022-03-21 00:27:36 +00:00
|
|
|
memstream.c
|
|
|
|
message.c
|
2011-05-16 13:12:07 +00:00
|
|
|
network.c
|
|
|
|
nls.c
|
|
|
|
path.c
|
|
|
|
ppb.c
|
2015-09-08 20:14:39 +00:00
|
|
|
prefix.c
|
2012-10-04 18:48:15 +00:00
|
|
|
priv.c
|
2011-05-16 13:12:07 +00:00
|
|
|
process.c
|
|
|
|
propvar.c
|
|
|
|
random.c
|
|
|
|
rangelist.c
|
|
|
|
registry.c
|
|
|
|
res.c
|
|
|
|
resource.c
|
2014-01-07 21:26:06 +00:00
|
|
|
rxact.c
|
2011-05-16 13:12:07 +00:00
|
|
|
sd.c
|
|
|
|
security.c
|
|
|
|
sid.c
|
2022-03-21 00:27:36 +00:00
|
|
|
slist.c
|
2011-05-16 13:12:07 +00:00
|
|
|
splaytree.c
|
[RTL]: Document and flesh out Boot Status Data (BSD) API/Structures
[NDK]: Document latest RTL_BSD_DATA as of RS3 based on ext.dll WinDBG
extension "!blackboxbsd" which outputs the entire structure field by
field :).
[NDK]: Update RTL_BSD_ITEM_TYPE thanks to ole32 symbols
[RTL]: Move system volume APIs to sysvol.c
[RTL]: Fill out BsdItemTable based on actual field offsets/sizes and not
hardcoded magic numbers which we won't ask where they came from.
[RTL]: Make RtlCreateBootStatusDataFile use an appropriate structure for
initializing the buffer instead of "UCHAR Buffer[12] = {0xC,0,0,0,
1,0,0,0, 1, 0x1e, 1, 0};" which appears like magic knowledge.
[RTL]: Rename "WriteMode" to "Read" in RtlGetSetBootStatusData since
it's much less confusing.
[RTL]: Some formatting fixes, SAL updates.
2018-02-04 17:33:32 +00:00
|
|
|
sysvol.c
|
2011-05-16 13:12:07 +00:00
|
|
|
thread.c
|
|
|
|
time.c
|
|
|
|
timerqueue.c
|
2022-03-21 00:27:36 +00:00
|
|
|
timezone.c
|
2015-09-08 20:14:39 +00:00
|
|
|
trace.c
|
2011-05-16 13:12:07 +00:00
|
|
|
unicode.c
|
|
|
|
unicodeprefix.c
|
|
|
|
vectoreh.c
|
|
|
|
version.c
|
|
|
|
wait.c
|
2014-02-09 21:43:42 +00:00
|
|
|
workitem.c
|
|
|
|
rtl.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-08-27 18:58:27 +00:00
|
|
|
if(ARCH STREQUAL "i386")
|
2013-01-08 20:33:08 +00:00
|
|
|
list(APPEND ASM_SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
i386/debug_asm.S
|
|
|
|
i386/except_asm.s
|
|
|
|
i386/interlck.S
|
|
|
|
i386/rtlmem.s
|
2011-10-13 21:48:10 +00:00
|
|
|
i386/rtlswap.S
|
2013-01-08 20:33:08 +00:00
|
|
|
i386/res_asm.s)
|
|
|
|
list(APPEND SOURCE
|
|
|
|
i386/except.c
|
2011-05-16 13:12:07 +00:00
|
|
|
i386/thread.c)
|
2012-08-27 18:58:27 +00:00
|
|
|
elseif(ARCH STREQUAL "amd64")
|
2013-01-08 20:33:08 +00:00
|
|
|
list(APPEND ASM_SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
amd64/debug_asm.S
|
|
|
|
amd64/except_asm.S
|
2013-01-08 20:33:08 +00:00
|
|
|
amd64/slist.S)
|
|
|
|
list(APPEND SOURCE
|
2013-04-14 18:49:20 +00:00
|
|
|
bitmap64.c
|
2013-01-08 20:33:08 +00:00
|
|
|
byteswap.c
|
2022-06-10 16:44:51 +00:00
|
|
|
amd64/dynfntbl.c
|
2018-03-01 13:13:01 +00:00
|
|
|
amd64/except.c
|
2011-05-16 13:12:07 +00:00
|
|
|
amd64/unwind.c
|
|
|
|
amd64/stubs.c
|
2011-08-19 18:39:47 +00:00
|
|
|
mem.c)
|
2012-08-27 18:58:27 +00:00
|
|
|
elseif(ARCH STREQUAL "arm")
|
2013-01-08 20:33:08 +00:00
|
|
|
list(APPEND ASM_SOURCE arm/debug_asm.S)
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
2015-05-10 21:04:27 +00:00
|
|
|
arm/except.c
|
2011-10-12 21:11:02 +00:00
|
|
|
byteswap.c
|
2011-08-19 18:39:47 +00:00
|
|
|
mem.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|
|
|
|
|
2013-01-08 20:33:08 +00:00
|
|
|
add_asm_files(rtl_asm ${ASM_SOURCE})
|
|
|
|
add_library(rtl ${SOURCE} ${rtl_asm})
|
2021-04-22 15:28:52 +00:00
|
|
|
target_link_libraries(rtl PRIVATE pseh)
|
2020-12-17 14:01:50 +00:00
|
|
|
add_pch(rtl rtl.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(rtl psdk asm)
|
2020-09-12 13:04:02 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE_VISTA
|
|
|
|
condvar.c
|
|
|
|
runonce.c
|
|
|
|
srw.c
|
2022-03-21 00:14:28 +00:00
|
|
|
utf8.c)
|
2020-09-12 13:04:02 +00:00
|
|
|
|
|
|
|
add_library(rtl_vista ${SOURCE_VISTA})
|
2021-03-02 18:06:17 +00:00
|
|
|
add_pch(rtl_vista rtl_vista.h SOURCE_VISTA)
|
2020-09-12 13:04:02 +00:00
|
|
|
add_dependencies(rtl_vista psdk)
|
2021-04-22 15:28:52 +00:00
|
|
|
target_link_libraries(rtl_vista PRIVATE pseh)
|