f34de65b8b3609bea6dc8015824016a5d3d032f6
[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 image.c
33 interlck.c
34 message.c
35 largeint.c
36 luid.c
37 network.c
38 nls.c
39 path.c
40 ppb.c
41 process.c
42 propvar.c
43 qsort.c
44 random.c
45 rangelist.c
46 registry.c
47 res.c
48 resource.c
49 sd.c
50 security.c
51 slist.c
52 sid.c
53 sprintf.c
54 srw.c
55 swprintf.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 MATCHES i386)
69 list(APPEND SOURCE
70 i386/debug_asm.S
71 i386/except_asm.s
72 i386/except.c
73 i386/interlck.S
74 i386/rtlmem.s
75 i386/res_asm.s
76 i386/thread.c)
77 elseif(ARCH MATCHES amd64)
78 list(APPEND SOURCE
79 amd64/debug_asm.S
80 amd64/except_asm.S
81 amd64/slist.S
82 amd64/unwind.c
83 amd64/stubs.c
84 mem.c
85 memgen.c)
86 elseif(ARCH MATCHES arm)
87 list(APPEND SOURCE
88 arm/debug_asm.S
89 mem.c
90 memgen.c)
91 elseif(ARCH MATCHES powerpc)
92 list(APPEND SOURCE
93 powerpc/debug.c
94 powerpc/except.c
95 powerpc/interlocked.c
96 powerpc/rtlmem.s
97 powerpc/rtlswap.s
98 powerpc/thread.c)
99 endif(ARCH MATCHES i386)
100
101 add_library(rtl ${CMAKE_CURRENT_BINARY_DIR}/rtl_rtl.h.gch ${SOURCE})
102 add_pch(rtl ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h ${SOURCE})
103 add_dependencies(rtl psdk ks386)