[CONUTILS] Make the headers C++ compatible.
[reactos.git] / 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 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 prefix.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 splaytree.c
59 thread.c
60 time.c
61 timezone.c
62 timerqueue.c
63 trace.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 arm/except.c
98 byteswap.c
99 mem.c)
100 elseif(ARCH STREQUAL "powerpc")
101 list(APPEND ASM_SOURCE
102 powerpc/rtlmem.s
103 powerpc/rtlswap.s)
104 list(APPEND SOURCE
105 byteswap.c
106 powerpc/debug.c
107 powerpc/except.c
108 powerpc/interlocked.c
109 powerpc/thread.c)
110 endif()
111
112 add_asm_files(rtl_asm ${ASM_SOURCE})
113 add_library(rtl ${SOURCE} ${rtl_asm})
114 add_pch(rtl rtl.h SOURCE)
115 add_dependencies(rtl psdk asm)