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