[PSDK]
[reactos.git] / reactos / lib / sdk / crt / libcntpr.cmake
1
2 list(APPEND LIBCNTPR_SOURCE
3 float/isnan.c
4 math/abs.c
5 math/div.c
6 math/labs.c
7 math/rand_nt.c
8 mbstring/mbstrlen.c
9 mem/memccpy.c
10 mem/memcmp.c
11 mem/memicmp.c
12 misc/fltused.c
13 printf/_snprintf.c
14 printf/_snwprintf.c
15 printf/_vcprintf.c
16 printf/_vscwprintf.c
17 printf/_vsnprintf.c
18 printf/_vsnwprintf.c
19 printf/sprintf.c
20 printf/streamout.c
21 printf/swprintf.c
22 printf/vprintf.c
23 printf/vsprintf.c
24 printf/vswprintf.c
25 printf/wstreamout.c
26 search/bsearch.c
27 search/lfind.c
28 stdlib/qsort.c
29 string/ctype.c
30 string/iswctype.c
31 string/is_wctype.c
32 string/scanf.c
33 string/strcspn.c
34 string/stricmp.c
35 string/strnicmp.c
36 string/strlwr.c
37 string/strrev.c
38 string/strset.c
39 string/strstr.c
40 string/strupr.c
41 string/strpbrk.c
42 string/strspn.c
43 string/atoi64.c
44 string/atoi.c
45 string/atol.c
46 string/itoa.c
47 string/itow.c
48 string/mbstowcs_nt.c
49 string/splitp.c
50 string/strtol.c
51 string/strtoul.c
52 string/strtoull.c
53 string/wcs.c
54 string/wcstol.c
55 string/wcstombs_nt.c
56 string/wcstoul.c
57 string/wctype.c
58 string/wsplitp.c
59 string/wtoi64.c
60 string/wtoi.c
61 string/wtol.c
62 wstring/wcsicmp.c
63 wstring/wcslwr.c
64 wstring/wcsnicmp.c
65 wstring/wcsupr.c
66 wstring/wcscspn.c
67 wstring/wcsspn.c
68 wstring/wcsstr.c)
69
70 if(ARCH STREQUAL "i386")
71 list(APPEND LIBCNTPR_SOURCE
72 except/i386/chkstk_asm.s
73 except/i386/seh.s
74 except/i386/seh_prolog.s
75 setjmp/i386/setjmp.s
76 math/i386/alldiv_asm.s
77 math/i386/alldvrm_asm.s
78 math/i386/allmul_asm.s
79 math/i386/allrem_asm.s
80 math/i386/allshl_asm.s
81 math/i386/allshr_asm.s
82 math/i386/atan_asm.s
83 math/i386/atan2_asm.s
84 math/i386/aulldiv_asm.s
85 math/i386/aulldvrm_asm.s
86 math/i386/aullrem_asm.s
87 math/i386/aullshr_asm.s
88 math/i386/ceil_asm.s
89 math/i386/cos_asm.s
90 math/i386/fabs_asm.s
91 math/i386/floor_asm.s
92 math/i386/ftol_asm.s
93 math/i386/ftol2_asm.s
94 math/i386/log_asm.s
95 math/i386/log10_asm.s
96 math/i386/pow_asm.s
97 math/i386/sin_asm.s
98 math/i386/sqrt_asm.s
99 math/i386/tan_asm.s
100 math/i386/ci.c
101 math/i386/cicos.c
102 math/i386/cilog.c
103 math/i386/cipow.c
104 math/i386/cisin.c
105 math/i386/cisqrt.c
106 misc/i386/readcr4.S)
107 if(NOT MSVC)
108 list(APPEND LIBCNTPR_SOURCE except/i386/chkstk_ms.s)
109 endif()
110 elseif(ARCH STREQUAL "amd64")
111 list(APPEND LIBCNTPR_SOURCE
112 except/amd64/ehandler.c
113 except/amd64/chkstk_asm.s
114 except/amd64/seh.s
115 setjmp/amd64/setjmp.s
116 math/cos.c
117 math/sin.c
118 math/amd64/atan.S
119 math/amd64/atan2.S
120 math/amd64/ceil.S
121 math/amd64/exp.S
122 math/amd64/fabs.S
123 math/amd64/floor.S
124 math/amd64/floorf.S
125 math/amd64/fmod.S
126 math/amd64/ldexp.S
127 math/amd64/log.S
128 math/amd64/log10.S
129 math/amd64/pow.S
130 math/amd64/sqrt.S
131 math/amd64/tan.S)
132 endif()
133
134 if(ARCH STREQUAL "i386")
135 list(APPEND LIBCNTPR_SOURCE
136 mem/i386/memchr_asm.s
137 mem/i386/memmove_asm.s
138 mem/i386/memset_asm.s
139 string/i386/strcat_asm.s
140 string/i386/strchr_asm.s
141 string/i386/strcmp_asm.s
142 string/i386/strcpy_asm.s
143 string/i386/strlen_asm.s
144 string/i386/strncat_asm.s
145 string/i386/strncmp_asm.s
146 string/i386/strncpy_asm.s
147 string/i386/strnlen_asm.s
148 string/i386/strrchr_asm.s
149 string/i386/wcscat_asm.s
150 string/i386/wcschr_asm.s
151 string/i386/wcscmp_asm.s
152 string/i386/wcscpy_asm.s
153 string/i386/wcslen_asm.s
154 string/i386/wcsncat_asm.s
155 string/i386/wcsncmp_asm.s
156 string/i386/wcsncpy_asm.s
157 string/i386/wcsnlen_asm.s
158 string/i386/wcsrchr_asm.s)
159 else()
160 list(APPEND LIBCNTPR_SOURCE
161 mem/memchr.c
162 mem/memcpy.c
163 mem/memmove.c
164 mem/memset.c
165 string/strcat.c
166 string/strchr.c
167 string/strcmp.c
168 string/strcpy.c
169 string/strlen.c
170 string/strncat.c
171 string/strncmp.c
172 string/strncpy.c
173 string/strnlen.c
174 string/strrchr.c
175 string/wcscat.c
176 string/wcschr.c
177 string/wcscmp.c
178 string/wcscpy.c
179 string/wcslen.c
180 string/wcsncat.c
181 string/wcsncmp.c
182 string/wcsncpy.c
183 string/wcsnlen.c
184 string/wcsrchr.c)
185 endif()
186
187 add_library(libcntpr ${LIBCNTPR_SOURCE})
188 add_target_compile_definitions(libcntpr
189 NO_RTL_INLINES
190 _NTSYSTEM_
191 _NTDLLBUILD_
192 _LIBCNT_
193 __CRT__NO_INLINE
194 CRTDLL)
195 add_dependencies(libcntpr psdk asm)