Sync with trunk r63192.
[reactos.git] / 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 rtl.h)
70
71 if(ARCH STREQUAL "i386")
72 list(APPEND ASM_SOURCE
73 i386/debug_asm.S
74 i386/except_asm.s
75 i386/interlck.S
76 i386/rtlmem.s
77 i386/rtlswap.S
78 i386/res_asm.s)
79 list(APPEND SOURCE
80 i386/except.c
81 i386/thread.c)
82 elseif(ARCH STREQUAL "amd64")
83 list(APPEND ASM_SOURCE
84 amd64/debug_asm.S
85 amd64/except_asm.S
86 amd64/slist.S)
87 list(APPEND SOURCE
88 bitmap64.c
89 byteswap.c
90 amd64/unwind.c
91 amd64/stubs.c
92 mem.c)
93 elseif(ARCH STREQUAL "arm")
94 list(APPEND ASM_SOURCE arm/debug_asm.S)
95 list(APPEND SOURCE
96 byteswap.c
97 mem.c)
98 elseif(ARCH STREQUAL "powerpc")
99 list(APPEND ASM_SOURCE
100 powerpc/rtlmem.s
101 powerpc/rtlswap.s)
102 list(APPEND SOURCE
103 byteswap.c
104 powerpc/debug.c
105 powerpc/except.c
106 powerpc/interlocked.c
107 powerpc/thread.c)
108 endif()
109
110 add_asm_files(rtl_asm ${ASM_SOURCE})
111 add_library(rtl ${SOURCE} ${rtl_asm})
112 add_pch(rtl rtl.h SOURCE)
113 add_dependencies(rtl psdk asm)