1#
2# Copyright 2017 The Abseil Authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      https://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17absl_cc_library(
18  NAME
19    strings
20  HDRS
21    "ascii.h"
22    "charconv.h"
23    "escaping.h"
24    "match.h"
25    "numbers.h"
26    "str_cat.h"
27    "str_join.h"
28    "str_replace.h"
29    "str_split.h"
30    "string_view.h"
31    "strip.h"
32    "substitute.h"
33  SRCS
34    "ascii.cc"
35    "charconv.cc"
36    "escaping.cc"
37    "internal/charconv_bigint.cc"
38    "internal/charconv_bigint.h"
39    "internal/charconv_parse.cc"
40    "internal/charconv_parse.h"
41    "internal/memutil.cc"
42    "internal/memutil.h"
43    "internal/stl_type_traits.h"
44    "internal/str_join_internal.h"
45    "internal/str_split_internal.h"
46    "match.cc"
47    "numbers.cc"
48    "str_cat.cc"
49    "str_replace.cc"
50    "str_split.cc"
51    "string_view.cc"
52    "substitute.cc"
53  COPTS
54    ${ABSL_DEFAULT_COPTS}
55  DEPS
56    absl::strings_internal
57    absl::base
58    absl::bits
59    absl::config
60    absl::core_headers
61    absl::endian
62    absl::int128
63    absl::memory
64    absl::raw_logging_internal
65    absl::throw_delegate
66    absl::type_traits
67  PUBLIC
68)
69
70absl_cc_library(
71  NAME
72    strings_internal
73  HDRS
74    "internal/char_map.h"
75    "internal/escaping.cc"
76    "internal/escaping.h"
77    "internal/ostringstream.h"
78    "internal/resize_uninitialized.h"
79    "internal/utf8.h"
80  SRCS
81    "internal/ostringstream.cc"
82    "internal/utf8.cc"
83  COPTS
84    ${ABSL_DEFAULT_COPTS}
85  DEPS
86    absl::config
87    absl::core_headers
88    absl::endian
89    absl::raw_logging_internal
90    absl::type_traits
91)
92
93absl_cc_test(
94  NAME
95    match_test
96  SRCS
97    "match_test.cc"
98  COPTS
99    ${ABSL_TEST_COPTS}
100  DEPS
101    absl::strings
102    absl::base
103    gmock_main
104)
105
106absl_cc_test(
107  NAME
108    escaping_test
109  SRCS
110    "escaping_test.cc"
111  COPTS
112    ${ABSL_TEST_COPTS}
113  DEPS
114    absl::strings
115    absl::core_headers
116    absl::fixed_array
117    gmock_main
118)
119
120absl_cc_test(
121  NAME
122    ascii_test
123  SRCS
124    "ascii_test.cc"
125  COPTS
126    ${ABSL_TEST_COPTS}
127  DEPS
128    absl::strings
129    absl::core_headers
130    gmock_main
131)
132
133absl_cc_test(
134  NAME
135    memutil_test
136  SRCS
137    "internal/memutil.h"
138    "internal/memutil_test.cc"
139  COPTS
140    ${ABSL_TEST_COPTS}
141  DEPS
142    absl::strings
143    absl::core_headers
144    gmock_main
145)
146
147absl_cc_test(
148  NAME
149    utf8_test
150  SRCS
151    "internal/utf8_test.cc"
152  COPTS
153    ${ABSL_TEST_COPTS}
154  DEPS
155    absl::strings_internal
156    absl::base
157    absl::core_headers
158    gmock_main
159)
160
161absl_cc_test(
162  NAME
163    string_view_test
164  SRCS
165    "string_view_test.cc"
166  COPTS
167    ${ABSL_TEST_COPTS}
168  DEPS
169    absl::strings
170    absl::config
171    absl::core_headers
172    absl::dynamic_annotations
173    gmock_main
174)
175
176absl_cc_test(
177  NAME
178    substitute_test
179  SRCS
180    "substitute_test.cc"
181  COPTS
182    ${ABSL_TEST_COPTS}
183  DEPS
184    absl::strings
185    absl::core_headers
186    gmock_main
187)
188
189absl_cc_test(
190  NAME
191    str_replace_test
192  SRCS
193    "str_replace_test.cc"
194  COPTS
195    ${ABSL_TEST_COPTS}
196  DEPS
197    absl::strings
198    gmock_main
199)
200
201absl_cc_test(
202  NAME
203    str_split_test
204  SRCS
205    "str_split_test.cc"
206  COPTS
207    ${ABSL_TEST_COPTS}
208  DEPS
209    absl::strings
210    absl::base
211    absl::core_headers
212    absl::dynamic_annotations
213    absl::flat_hash_map
214    absl::node_hash_map
215    gmock_main
216)
217
218absl_cc_test(
219  NAME
220    ostringstream_test
221  SRCS
222    "internal/ostringstream_test.cc"
223  COPTS
224    ${ABSL_TEST_COPTS}
225  DEPS
226    absl::strings_internal
227    gmock_main
228)
229
230absl_cc_test(
231  NAME
232    resize_uninitialized_test
233  SRCS
234    "internal/resize_uninitialized.h"
235    "internal/resize_uninitialized_test.cc"
236  COPTS
237    ${ABSL_TEST_COPTS}
238  DEPS
239    absl::base
240    absl::core_headers
241    absl::type_traits
242    gmock_main
243)
244
245absl_cc_test(
246  NAME
247    str_join_test
248  SRCS
249    "str_join_test.cc"
250  COPTS
251    ${ABSL_TEST_COPTS}
252  DEPS
253    absl::strings
254    absl::base
255    absl::core_headers
256    absl::memory
257    gmock_main
258)
259
260absl_cc_test(
261  NAME
262    str_cat_test
263  SRCS
264    "str_cat_test.cc"
265  COPTS
266    ${ABSL_TEST_COPTS}
267  DEPS
268    absl::strings
269    absl::core_headers
270    gmock_main
271)
272
273absl_cc_test(
274  NAME
275    numbers_test
276  SRCS
277    "internal/numbers_test_common.h"
278    "numbers_test.cc"
279  COPTS
280    ${ABSL_TEST_COPTS}
281  DEPS
282    absl::strings
283    absl::core_headers
284    absl::pow10_helper
285    absl::config
286    absl::raw_logging_internal
287    absl::random_random
288    absl::random_distributions
289    absl::strings_internal
290    gmock_main
291)
292
293absl_cc_test(
294  NAME
295    strip_test
296  SRCS
297    "strip_test.cc"
298  COPTS
299    ${ABSL_TEST_COPTS}
300  DEPS
301    absl::strings
302    absl::base
303    gmock_main
304)
305
306absl_cc_test(
307  NAME
308    char_map_test
309  SRCS
310    "internal/char_map_test.cc"
311  COPTS
312    ${ABSL_TEST_COPTS}
313  DEPS
314    absl::strings_internal
315    gmock_main
316)
317
318absl_cc_test(
319  NAME
320    charconv_test
321  SRCS
322    "charconv_test.cc"
323  COPTS
324    ${ABSL_TEST_COPTS}
325  DEPS
326    absl::strings
327    absl::str_format
328    absl::pow10_helper
329    gmock_main
330)
331
332absl_cc_test(
333  NAME
334    charconv_parse_test
335  SRCS
336    "internal/charconv_parse.h"
337    "internal/charconv_parse_test.cc"
338  COPTS
339    ${ABSL_TEST_COPTS}
340  DEPS
341    absl::strings
342    absl::config
343    absl::raw_logging_internal
344    gmock_main
345)
346
347absl_cc_test(
348  NAME
349    charconv_bigint_test
350  SRCS
351    "internal/charconv_bigint.h"
352    "internal/charconv_bigint_test.cc"
353    "internal/charconv_parse.h"
354  COPTS
355    ${ABSL_TEST_COPTS}
356  DEPS
357    absl::strings
358    absl::config
359    gmock_main
360)
361
362absl_cc_library(
363  NAME
364    str_format
365  HDRS
366    "str_format.h"
367  COPTS
368    ${ABSL_DEFAULT_COPTS}
369  DEPS
370    absl::str_format_internal
371  PUBLIC
372)
373
374absl_cc_library(
375  NAME
376    str_format_internal
377  HDRS
378    "internal/str_format/arg.h"
379    "internal/str_format/bind.h"
380    "internal/str_format/checker.h"
381    "internal/str_format/extension.h"
382    "internal/str_format/float_conversion.h"
383    "internal/str_format/output.h"
384    "internal/str_format/parser.h"
385  SRCS
386    "internal/str_format/arg.cc"
387    "internal/str_format/bind.cc"
388    "internal/str_format/extension.cc"
389    "internal/str_format/float_conversion.cc"
390    "internal/str_format/output.cc"
391    "internal/str_format/parser.cc"
392  COPTS
393    ${ABSL_DEFAULT_COPTS}
394  DEPS
395    absl::bits
396    absl::strings
397    absl::config
398    absl::core_headers
399    absl::type_traits
400    absl::int128
401    absl::span
402)
403
404absl_cc_test(
405  NAME
406    str_format_test
407  SRCS
408    "str_format_test.cc"
409  COPTS
410    ${ABSL_TEST_COPTS}
411  DEPS
412    absl::str_format
413    absl::cord
414    absl::strings
415    absl::core_headers
416    gmock_main
417)
418
419absl_cc_test(
420  NAME
421    str_format_extension_test
422  SRCS
423    "internal/str_format/extension_test.cc"
424  COPTS
425    ${ABSL_TEST_COPTS}
426  DEPS
427    absl::str_format
428    absl::str_format_internal
429    absl::strings
430    gmock_main
431)
432
433absl_cc_test(
434  NAME
435    str_format_arg_test
436  SRCS
437    "internal/str_format/arg_test.cc"
438  COPTS
439    ${ABSL_TEST_COPTS}
440  DEPS
441    absl::str_format
442    absl::str_format_internal
443    gmock_main
444)
445
446absl_cc_test(
447  NAME
448    str_format_bind_test
449  SRCS
450    "internal/str_format/bind_test.cc"
451  COPTS
452    ${ABSL_TEST_COPTS}
453  DEPS
454    absl::str_format_internal
455    gmock_main
456)
457
458absl_cc_test(
459  NAME
460    str_format_checker_test
461  SRCS
462    "internal/str_format/checker_test.cc"
463  COPTS
464    ${ABSL_TEST_COPTS}
465  DEPS
466    absl::str_format
467    gmock_main
468)
469
470absl_cc_test(
471  NAME
472    str_format_convert_test
473  SRCS
474    "internal/str_format/convert_test.cc"
475  COPTS
476    ${ABSL_TEST_COPTS}
477  DEPS
478    absl::strings
479    absl::str_format_internal
480    absl::raw_logging_internal
481    absl::int128
482    gmock_main
483)
484
485absl_cc_test(
486  NAME
487    str_format_output_test
488  SRCS
489    "internal/str_format/output_test.cc"
490  COPTS
491    ${ABSL_TEST_COPTS}
492  DEPS
493    absl::str_format_internal
494    absl::cord
495    gmock_main
496)
497
498absl_cc_test(
499  NAME
500    str_format_parser_test
501  SRCS
502    "internal/str_format/parser_test.cc"
503  COPTS
504    ${ABSL_TEST_COPTS}
505  DEPS
506    absl::str_format_internal
507    absl::core_headers
508    gmock_main
509)
510
511absl_cc_library(
512  NAME
513    pow10_helper
514  HDRS
515    "internal/pow10_helper.h"
516  SRCS
517    "internal/pow10_helper.cc"
518  COPTS
519    ${ABSL_TEST_COPTS}
520  DEPS
521    absl::config
522  TESTONLY
523)
524
525absl_cc_test(
526  NAME
527    pow10_helper_test
528  SRCS
529    "internal/pow10_helper_test.cc"
530  COPTS
531    ${ABSL_TEST_COPTS}
532  DEPS
533    absl::pow10_helper
534    absl::str_format
535    gmock_main
536)
537
538absl_cc_library(
539  NAME
540    cord
541  HDRS
542    "cord.h"
543  SRCS
544    "cord.cc"
545    "internal/cord_internal.h"
546  COPTS
547    ${ABSL_DEFAULT_COPTS}
548  DEPS
549    absl::base
550    absl::base_internal
551    absl::compressed_tuple
552    absl::core_headers
553    absl::endian
554    absl::fixed_array
555    absl::function_ref
556    absl::inlined_vector
557    absl::optional
558    absl::raw_logging_internal
559    absl::strings
560    absl::strings_internal
561    absl::type_traits
562  PUBLIC
563)
564
565absl_cc_library(
566  NAME
567    cord_test_helpers
568  HDRS
569    "cord_test_helpers.h"
570  COPTS
571    ${ABSL_TEST_COPTS}
572  DEPS
573    absl::cord
574  TESTONLY
575)
576
577absl_cc_test(
578  NAME
579    cord_test
580  SRCS
581    "cord_test.cc"
582  COPTS
583    ${ABSL_TEST_COPTS}
584  DEPS
585    absl::cord
586    absl::str_format
587    absl::strings
588    absl::base
589    absl::config
590    absl::core_headers
591    absl::endian
592    absl::raw_logging_internal
593    absl::fixed_array
594    gmock_main
595)
596