xref: /llvm-project/libc/src/ctype/CMakeLists.txt (revision 856dadb33c38f4e3be592f11c3d67e7337e288c7)
1add_entrypoint_object(
2  isalnum
3  SRCS
4    isalnum.cpp
5  HDRS
6    isalnum.h
7  DEPENDS
8    libc.include.ctype
9    libc.src.__support.ctype_utils
10)
11
12add_entrypoint_object(
13  isalpha
14  SRCS
15    isalpha.cpp
16  HDRS
17    isalpha.h
18  DEPENDS
19    libc.src.__support.ctype_utils
20)
21
22add_entrypoint_object(
23  isascii
24  SRCS
25    isascii.cpp
26  HDRS
27    isascii.h
28)
29
30add_entrypoint_object(
31  isblank
32  SRCS
33    isblank.cpp
34  HDRS
35    isblank.h
36)
37
38add_entrypoint_object(
39  iscntrl
40  SRCS
41    iscntrl.cpp
42  HDRS
43    iscntrl.h
44)
45
46add_entrypoint_object(
47  isdigit
48  SRCS
49    isdigit.cpp
50  HDRS
51    isdigit.h
52  DEPENDS
53    libc.src.__support.ctype_utils
54)
55
56add_entrypoint_object(
57  isgraph
58  SRCS
59    isgraph.cpp
60  HDRS
61    isgraph.h
62  DEPENDS
63    libc.src.__support.ctype_utils
64)
65
66add_entrypoint_object(
67  islower
68  SRCS
69    islower.cpp
70  HDRS
71    islower.h
72  DEPENDS
73    libc.src.__support.ctype_utils
74)
75
76add_entrypoint_object(
77  isprint
78  SRCS
79    isprint.cpp
80  HDRS
81    isprint.h
82)
83
84add_entrypoint_object(
85  ispunct
86  SRCS
87    ispunct.cpp
88  HDRS
89    ispunct.h
90  DEPENDS
91    libc.src.__support.ctype_utils
92)
93
94add_entrypoint_object(
95  isspace
96  SRCS
97    isspace.cpp
98  HDRS
99    isspace.h
100)
101
102add_entrypoint_object(
103  isupper
104  SRCS
105    isupper.cpp
106  HDRS
107    isupper.h
108  DEPENDS
109    libc.src.__support.ctype_utils
110)
111
112add_entrypoint_object(
113  isxdigit
114  SRCS
115    isxdigit.cpp
116  HDRS
117    isxdigit.h
118  DEPENDS
119    libc.src.__support.ctype_utils
120)
121
122add_entrypoint_object(
123  tolower
124  SRCS
125    tolower.cpp
126  HDRS
127    tolower.h
128  DEPENDS
129    libc.src.__support.ctype_utils
130)
131
132add_entrypoint_object(
133  toascii
134  SRCS
135    toascii.cpp
136  HDRS
137    toascii.h
138)
139
140add_entrypoint_object(
141  toupper
142  SRCS
143    toupper.cpp
144  HDRS
145    toupper.h
146  DEPENDS
147    libc.src.__support.ctype_utils
148)
149
150# Do not build the locale versions in overlay mode.
151if(NOT LLVM_LIBC_FULL_BUILD)
152  return()
153endif()
154
155add_entrypoint_object(
156  isalnum_l
157  SRCS
158    isalnum_l.cpp
159  HDRS
160    isalnum_l.h
161  DEPENDS
162    libc.include.ctype
163    libc.src.__support.ctype_utils
164    libc.hdr.types.locale_t
165)
166
167add_entrypoint_object(
168  isalpha_l
169  SRCS
170    isalpha_l.cpp
171  HDRS
172    isalpha_l.h
173  DEPENDS
174    libc.src.__support.ctype_utils
175    libc.hdr.types.locale_t
176)
177
178add_entrypoint_object(
179  isblank_l
180  SRCS
181    isblank_l.cpp
182  HDRS
183    isblank_l.h
184  DEPENDS
185    libc.hdr.types.locale_t
186)
187
188add_entrypoint_object(
189  iscntrl_l
190  SRCS
191    iscntrl_l.cpp
192  HDRS
193    iscntrl_l.h
194  DEPENDS
195    libc.hdr.types.locale_t
196)
197
198add_entrypoint_object(
199  isdigit_l
200  SRCS
201    isdigit_l.cpp
202  HDRS
203    isdigit_l.h
204  DEPENDS
205    libc.src.__support.ctype_utils
206    libc.hdr.types.locale_t
207)
208
209add_entrypoint_object(
210  isgraph_l
211  SRCS
212    isgraph_l.cpp
213  HDRS
214    isgraph_l.h
215  DEPENDS
216    libc.src.__support.ctype_utils
217    libc.hdr.types.locale_t
218)
219
220add_entrypoint_object(
221  islower_l
222  SRCS
223    islower_l.cpp
224  HDRS
225    islower_l.h
226  DEPENDS
227    libc.src.__support.ctype_utils
228    libc.hdr.types.locale_t
229)
230
231add_entrypoint_object(
232  isprint_l
233  SRCS
234    isprint_l.cpp
235  HDRS
236    isprint_l.h
237  DEPENDS
238    libc.hdr.types.locale_t
239)
240
241add_entrypoint_object(
242  ispunct_l
243  SRCS
244    ispunct_l.cpp
245  HDRS
246    ispunct_l.h
247  DEPENDS
248    libc.src.__support.ctype_utils
249    libc.hdr.types.locale_t
250)
251
252add_entrypoint_object(
253  isspace_l
254  SRCS
255    isspace_l.cpp
256  HDRS
257    isspace_l.h
258  DEPENDS
259    libc.hdr.types.locale_t
260)
261
262add_entrypoint_object(
263  isupper_l
264  SRCS
265    isupper_l.cpp
266  HDRS
267    isupper_l.h
268  DEPENDS
269    libc.src.__support.ctype_utils
270    libc.hdr.types.locale_t
271)
272
273add_entrypoint_object(
274  isxdigit_l
275  SRCS
276    isxdigit_l.cpp
277  HDRS
278    isxdigit_l.h
279  DEPENDS
280    libc.src.__support.ctype_utils
281    libc.hdr.types.locale_t
282)
283
284add_entrypoint_object(
285  tolower_l
286  SRCS
287    tolower_l.cpp
288  HDRS
289    tolower_l.h
290  DEPENDS
291    libc.src.__support.ctype_utils
292    libc.hdr.types.locale_t
293)
294
295add_entrypoint_object(
296  toupper_l
297  SRCS
298    toupper_l.cpp
299  HDRS
300    toupper_l.h
301  DEPENDS
302    libc.src.__support.ctype_utils
303    libc.hdr.types.locale_t
304)
305