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