[RTL/NTDLL]
[reactos.git] / reactos / lib / rtl / CMakeLists.txt
1
2 add_definitions(
3 -D_NTOSKRNL_
4 -DNO_RTL_INLINES
5 -D_NTSYSTEM_
6 -D_NTDLLBUILD_)
7
8 list(APPEND SOURCE
9 access.c
10 acl.c
11 actctx.c
12 assert.c
13 atom.c
14 avltable.c
15 bitmap.c
16 bootdata.c
17 compress.c
18 condvar.c
19 crc32.c
20 critical.c
21 dbgbuffer.c
22 debug.c
23 dos8dot3.c
24 encode.c
25 env.c
26 error.c
27 exception.c
28 generictable.c
29 handle.c
30 heap.c
31 heapdbg.c
32 heappage.c
33 heapuser.c
34 image.c
35 interlck.c
36 memstream.c
37 message.c
38 largeint.c
39 luid.c
40 network.c
41 nls.c
42 path.c
43 ppb.c
44 priv.c
45 process.c
46 propvar.c
47 random.c
48 rangelist.c
49 registry.c
50 res.c
51 resource.c
52 rxact.c
53 sd.c
54 security.c
55 slist.c
56 sid.c
57 srw.c
58 splaytree.c
59 thread.c
60 time.c
61 timezone.c
62 timerqueue.c
63 unicode.c
64 unicodeprefix.c
65 vectoreh.c
66 version.c
67 wait.c
68 workitem.c)
69
70 if(ARCH STREQUAL "i386")
71 list(APPEND ASM_SOURCE
72 i386/debug_asm.S
73 i386/except_asm.s
74 i386/interlck.S
75 i386/rtlmem.s
76 i386/rtlswap.S
77 i386/res_asm.s)
78 list(APPEND SOURCE
79 i386/except.c
80 i386/thread.c)
81 elseif(ARCH STREQUAL "amd64")
82 list(APPEND ASM_SOURCE
83 amd64/debug_asm.S
84 amd64/except_asm.S
85 amd64/slist.S)
86 list(APPEND SOURCE
87 bitmap64.c
88 byteswap.c
89 amd64/unwind.c
90 amd64/stubs.c
91 mem.c)
92 elseif(ARCH STREQUAL "arm")
93 list(APPEND ASM_SOURCE arm/debug_asm.S)
94 list(APPEND SOURCE
95 byteswap.c
96 mem.c)
97 elseif(ARCH STREQUAL "powerpc")
98 list(APPEND ASM_SOURCE
99 powerpc/rtlmem.s
100 powerpc/rtlswap.s)
101 list(APPEND SOURCE
102 byteswap.c
103 powerpc/debug.c
104 powerpc/except.c
105 powerpc/interlocked.c
106 powerpc/thread.c)
107 endif()
108
109 add_asm_files(rtl_asm ${ASM_SOURCE})
110 add_library(rtl ${SOURCE} ${rtl_asm})
111 add_pch(rtl rtl.h)
112 add_dependencies(rtl psdk asm)