[DELAYIMP] Fix 2 Clang-Cl warnings about __pfnDliNotifyHook2Default and __pfnDliFailu...
[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 sysvol.c
60 thread.c
61 time.c
62 timezone.c
63 timerqueue.c
64 trace.c
65 unicode.c
66 unicodeprefix.c
67 vectoreh.c
68 version.c
69 wait.c
70 workitem.c
71 rtl.h)
72
73 if(ARCH STREQUAL "i386")
74 list(APPEND ASM_SOURCE
75 i386/debug_asm.S
76 i386/except_asm.s
77 i386/interlck.S
78 i386/rtlmem.s
79 i386/rtlswap.S
80 i386/res_asm.s)
81 list(APPEND SOURCE
82 i386/except.c
83 i386/thread.c)
84 elseif(ARCH STREQUAL "amd64")
85 list(APPEND ASM_SOURCE
86 amd64/debug_asm.S
87 amd64/except_asm.S
88 amd64/slist.S)
89 list(APPEND SOURCE
90 bitmap64.c
91 byteswap.c
92 amd64/unwind.c
93 amd64/stubs.c
94 mem.c)
95 elseif(ARCH STREQUAL "arm")
96 list(APPEND ASM_SOURCE arm/debug_asm.S)
97 list(APPEND SOURCE
98 arm/except.c
99 byteswap.c
100 mem.c)
101 elseif(ARCH STREQUAL "powerpc")
102 list(APPEND ASM_SOURCE
103 powerpc/rtlmem.s
104 powerpc/rtlswap.s)
105 list(APPEND SOURCE
106 byteswap.c
107 powerpc/debug.c
108 powerpc/except.c
109 powerpc/interlocked.c
110 powerpc/thread.c)
111 endif()
112
113 add_asm_files(rtl_asm ${ASM_SOURCE})
114 add_library(rtl ${SOURCE} ${rtl_asm})
115 add_pch(rtl rtl.h SOURCE)
116 add_dependencies(rtl psdk asm)