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