sync with trunk r49322
[reactos.git] / lib / rtl / CMakeLists.txt
1
2 add_definitions(-D_NTOSKRNL_)
3 add_definitions(-DNO_RTL_INLINES)
4 add_definitions(-D_NTSYSTEM_)
5 add_definitions(-D_NTDLLBUILD_)
6
7 list(APPEND SOURCE
8 access.c
9 acl.c
10 actctx.c
11 assert.c
12 atom.c
13 avltable.c
14 bitmap.c
15 bootdata.c
16 compress.c
17 condvar.c
18 crc32.c
19 critical.c
20 dbgbuffer.c
21 debug.c
22 dos8dot3.c
23 encode.c
24 env.c
25 error.c
26 exception.c
27 generictable.c
28 handle.c
29 heap.c
30 heapdbg.c
31 image.c
32 interlck.c
33 message.c
34 largeint.c
35 luid.c
36 network.c
37 nls.c
38 path.c
39 ppb.c
40 process.c
41 propvar.c
42 qsort.c
43 random.c
44 rangelist.c
45 registry.c
46 res.c
47 resource.c
48 sd.c
49 security.c
50 slist.c
51 sid.c
52 sprintf.c
53 srw.c
54 swprintf.c
55 splaytree.c
56 thread.c
57 time.c
58 timezone.c
59 timerqueue.c
60 unicode.c
61 unicodeprefix.c
62 vectoreh.c
63 version.c
64 wait.c
65 workitem.c)
66
67 if(ARCH MATCHES i386)
68 list(APPEND SOURCE
69 i386/debug_asm.S
70 i386/except_asm.s
71 i386/except.c
72 i386/interlck.S
73 i386/rtlmem.s
74 i386/res_asm.s
75 i386/thread.c)
76 elseif(ARCH MATCHES amd64)
77 list(APPEND SOURCE
78 amd64/debug_asm.S
79 amd64/except_asm.S
80 amd64/slist.S
81 amd64/unwind.c
82 amd64/stubs.c
83 mem.c
84 memgen.c)
85 elseif(ARCH MATCHES arm)
86 list(APPEND SOURCE
87 arm/debug_asm.S
88 mem.c
89 memgen.c)
90 elseif(ARCH MATCHES powerpc)
91 list(APPEND SOURCE
92 powerpc/debug.c
93 powerpc/except.c
94 powerpc/interlocked.c
95 powerpc/rtlmem.s
96 powerpc/rtlswap.s
97 powerpc/thread.c)
98 endif(ARCH MATCHES i386)
99
100 add_library(rtl ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/rtl_rtl.h.gch)
101 add_pch(rtl ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h ${SOURCE})
102 add_dependencies(rtl psdk)