e584c063a6e93f67250b2425c50d59143b874952
[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 sd.c
53 security.c
54 slist.c
55 sid.c
56 srw.c
57 splaytree.c
58 thread.c
59 time.c
60 timezone.c
61 timerqueue.c
62 unicode.c
63 unicodeprefix.c
64 vectoreh.c
65 version.c
66 wait.c
67 workitem.c)
68
69 if(ARCH STREQUAL "i386")
70 list(APPEND ASM_SOURCE
71 i386/debug_asm.S
72 i386/except_asm.s
73 i386/interlck.S
74 i386/rtlmem.s
75 i386/rtlswap.S
76 i386/res_asm.s)
77 list(APPEND SOURCE
78 i386/except.c
79 i386/thread.c)
80 elseif(ARCH STREQUAL "amd64")
81 list(APPEND ASM_SOURCE
82 amd64/debug_asm.S
83 amd64/except_asm.S
84 amd64/slist.S)
85 list(APPEND SOURCE
86 bitmap64.c
87 byteswap.c
88 amd64/unwind.c
89 amd64/stubs.c
90 mem.c)
91 elseif(ARCH STREQUAL "arm")
92 list(APPEND ASM_SOURCE arm/debug_asm.S)
93 list(APPEND SOURCE
94 byteswap.c
95 mem.c)
96 elseif(ARCH STREQUAL "powerpc")
97 list(APPEND ASM_SOURCE
98 powerpc/rtlmem.s
99 powerpc/rtlswap.s)
100 list(APPEND SOURCE
101 byteswap.c
102 powerpc/debug.c
103 powerpc/except.c
104 powerpc/interlocked.c
105 powerpc/thread.c)
106 endif()
107
108 add_asm_files(rtl_asm ${ASM_SOURCE})
109 add_library(rtl ${SOURCE} ${rtl_asm})
110 add_pch(rtl rtl.h)
111 add_dependencies(rtl psdk asm)