[RTL]
[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 message.c
37 largeint.c
38 luid.c
39 network.c
40 nls.c
41 path.c
42 ppb.c
43 priv.c
44 process.c
45 propvar.c
46 random.c
47 rangelist.c
48 registry.c
49 res.c
50 resource.c
51 sd.c
52 security.c
53 slist.c
54 sid.c
55 srw.c
56 splaytree.c
57 thread.c
58 time.c
59 timezone.c
60 timerqueue.c
61 unicode.c
62 unicodeprefix.c
63 vectoreh.c
64 version.c
65 wait.c
66 workitem.c)
67
68 if(ARCH STREQUAL "i386")
69 list(APPEND ASM_SOURCE
70 i386/debug_asm.S
71 i386/except_asm.s
72 i386/interlck.S
73 i386/rtlmem.s
74 i386/rtlswap.S
75 i386/res_asm.s)
76 list(APPEND SOURCE
77 i386/except.c
78 i386/thread.c)
79 elseif(ARCH STREQUAL "amd64")
80 list(APPEND ASM_SOURCE
81 amd64/debug_asm.S
82 amd64/except_asm.S
83 amd64/slist.S)
84 list(APPEND SOURCE
85 bitmap64.c
86 byteswap.c
87 amd64/unwind.c
88 amd64/stubs.c
89 mem.c)
90 elseif(ARCH STREQUAL "arm")
91 list(APPEND ASM_SOURCE arm/debug_asm.S)
92 list(APPEND SOURCE
93 byteswap.c
94 mem.c)
95 elseif(ARCH STREQUAL "powerpc")
96 list(APPEND ASM_SOURCE
97 powerpc/rtlmem.s
98 powerpc/rtlswap.s)
99 list(APPEND SOURCE
100 byteswap.c
101 powerpc/debug.c
102 powerpc/except.c
103 powerpc/interlocked.c
104 powerpc/thread.c)
105 endif()
106
107 add_asm_files(rtl_asm ${ASM_SOURCE})
108 add_library(rtl ${SOURCE} ${rtl_asm})
109 add_pch(rtl rtl.h)
110 add_dependencies(rtl psdk asm)