dawn-cmake/third_party/abseil-cpp/absl/strings/BUILD.gn

610 lines
17 KiB
Plaintext
Raw Normal View History

2022-05-09 04:19:04 +00:00
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build_overrides/build.gni")
import("//third_party/abseil-cpp/absl.gni")
absl_source_set("strings") {
sources = [
"ascii.cc",
"charconv.cc",
"escaping.cc",
"internal/charconv_bigint.cc",
"internal/charconv_bigint.h",
"internal/charconv_parse.cc",
"internal/charconv_parse.h",
"internal/memutil.cc",
"internal/memutil.h",
"internal/stl_type_traits.h",
"internal/str_join_internal.h",
"internal/str_split_internal.h",
"match.cc",
"numbers.cc",
"str_cat.cc",
"str_replace.cc",
"str_split.cc",
"string_view.cc",
"substitute.cc",
]
public = [
"ascii.h",
"charconv.h",
"escaping.h",
"internal/string_constant.h",
"match.h",
"numbers.h",
"str_cat.h",
"str_join.h",
"str_replace.h",
"str_split.h",
"string_view.h",
"strip.h",
"substitute.h",
]
deps = [
":internal",
"//third_party/abseil-cpp/absl/base",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:endian",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/base:throw_delegate",
"//third_party/abseil-cpp/absl/memory",
"//third_party/abseil-cpp/absl/meta:type_traits",
"//third_party/abseil-cpp/absl/numeric:bits",
"//third_party/abseil-cpp/absl/numeric:int128",
]
}
absl_source_set("internal") {
sources = [
"internal/escaping.cc",
"internal/ostringstream.cc",
"internal/utf8.cc",
]
public = [
"internal/char_map.h",
"internal/escaping.h",
"internal/ostringstream.h",
"internal/resize_uninitialized.h",
"internal/utf8.h",
]
deps = [
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:endian",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/meta:type_traits",
]
}
absl_source_set("str_format") {
public = [ "str_format.h" ]
deps = [ ":str_format_internal" ]
}
absl_source_set("str_format_internal") {
sources = [
"internal/str_format/arg.cc",
"internal/str_format/bind.cc",
"internal/str_format/extension.cc",
"internal/str_format/float_conversion.cc",
"internal/str_format/output.cc",
"internal/str_format/parser.cc",
]
public = [
"internal/str_format/arg.h",
"internal/str_format/bind.h",
"internal/str_format/checker.h",
"internal/str_format/extension.h",
"internal/str_format/float_conversion.h",
"internal/str_format/output.h",
"internal/str_format/parser.h",
]
visibility = [ ":*" ]
deps = [
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/functional:function_ref",
"//third_party/abseil-cpp/absl/meta:type_traits",
"//third_party/abseil-cpp/absl/numeric:bits",
"//third_party/abseil-cpp/absl/numeric:int128",
"//third_party/abseil-cpp/absl/numeric:representation",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/abseil-cpp/absl/types:span",
2022-08-29 17:59:48 +00:00
"//third_party/abseil-cpp/absl/utility",
2022-05-09 04:19:04 +00:00
]
}
absl_source_set("cord_internal") {
sources = [
"internal/cord_internal.cc",
"internal/cord_rep_btree.cc",
"internal/cord_rep_btree_navigator.cc",
"internal/cord_rep_btree_reader.cc",
"internal/cord_rep_consume.cc",
2022-08-29 17:59:48 +00:00
"internal/cord_rep_crc.cc",
2022-05-09 04:19:04 +00:00
"internal/cord_rep_ring.cc",
]
public = [
2022-08-29 17:59:48 +00:00
"internal/cord_data_edge.h",
2022-05-09 04:19:04 +00:00
"internal/cord_internal.h",
"internal/cord_rep_btree.h",
"internal/cord_rep_btree_navigator.h",
"internal/cord_rep_btree_reader.h",
"internal/cord_rep_consume.h",
2022-08-29 17:59:48 +00:00
"internal/cord_rep_crc.h",
2022-05-09 04:19:04 +00:00
"internal/cord_rep_flat.h",
"internal/cord_rep_ring.h",
"internal/cord_rep_ring_reader.h",
]
visibility = [ ":*" ]
deps = [
":strings",
"//third_party/abseil-cpp/absl/base:base_internal",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:endian",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/base:throw_delegate",
"//third_party/abseil-cpp/absl/container:compressed_tuple",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/container:layout",
"//third_party/abseil-cpp/absl/functional:function_ref",
"//third_party/abseil-cpp/absl/meta:type_traits",
"//third_party/abseil-cpp/absl/types:span",
]
}
2022-08-29 17:59:48 +00:00
absl_source_set("cord_data_edge_test") {
testonly = true
sources = [ "internal/cord_data_edge_test.cc" ]
deps = [
":cord_internal",
":cord_rep_test_util",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
2022-05-09 04:19:04 +00:00
absl_source_set("cord_rep_btree_test") {
testonly = true
2022-08-29 17:59:48 +00:00
sources = [ "internal/cord_rep_btree_test.cc" ]
2022-05-09 04:19:04 +00:00
deps = [
":cord_internal",
":cord_rep_test_util",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/cleanup",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
absl_source_set("cord_rep_btree_reader_test") {
testonly = true
2022-08-29 17:59:48 +00:00
sources = [ "internal/cord_rep_btree_reader_test.cc" ]
2022-05-09 04:19:04 +00:00
deps = [
":cord",
":cord_internal",
":cord_rep_test_util",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
2022-08-29 17:59:48 +00:00
absl_source_set("cord_rep_crc_test") {
testonly = true
sources = [ "internal/cord_rep_crc_test.cc" ]
deps = [
":cord_internal",
":cord_rep_test_util",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
2022-05-09 04:19:04 +00:00
absl_source_set("cordz_update_tracker") {
2022-08-29 17:59:48 +00:00
public = [ "internal/cordz_update_tracker.h" ]
2022-05-09 04:19:04 +00:00
visibility = [ "//third_party/abseil-cpp/*" ]
2022-08-29 17:59:48 +00:00
deps = [ "//third_party/abseil-cpp/absl/base:config" ]
2022-05-09 04:19:04 +00:00
}
absl_source_set("cordz_update_tracker_test") {
testonly = true
2022-08-29 17:59:48 +00:00
sources = [ "internal/cordz_update_tracker_test.cc" ]
2022-05-09 04:19:04 +00:00
deps = [
":cordz_update_tracker",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/synchronization",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
absl_source_set("cord") {
2022-08-29 17:59:48 +00:00
sources = [
"cord.cc",
"cord_analysis.cc",
"cord_analysis.h",
"cord_buffer.cc",
]
public = [
"cord.h",
"cord_buffer.h",
]
2022-05-09 04:19:04 +00:00
deps = [
":cord_internal",
":cordz_functions",
":cordz_info",
":cordz_statistics",
":cordz_update_scope",
":cordz_update_tracker",
":internal",
":str_format",
":strings",
"//third_party/abseil-cpp/absl/base",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:endian",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/container:fixed_array",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/functional:function_ref",
"//third_party/abseil-cpp/absl/meta:type_traits",
2022-08-29 17:59:48 +00:00
"//third_party/abseil-cpp/absl/numeric:bits",
2022-05-09 04:19:04 +00:00
"//third_party/abseil-cpp/absl/types:optional",
2022-08-29 17:59:48 +00:00
"//third_party/abseil-cpp/absl/types:span",
2022-05-09 04:19:04 +00:00
]
}
absl_source_set("cordz_handle") {
2022-08-29 17:59:48 +00:00
sources = [ "internal/cordz_handle.cc" ]
public = [ "internal/cordz_handle.h" ]
2022-05-09 04:19:04 +00:00
visibility = [ "//third_party/abseil-cpp/*" ]
deps = [
"//third_party/abseil-cpp/absl/base",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/synchronization",
]
}
absl_source_set("cordz_info") {
2022-08-29 17:59:48 +00:00
sources = [ "internal/cordz_info.cc" ]
public = [ "internal/cordz_info.h" ]
2022-05-09 04:19:04 +00:00
visibility = [ "//third_party/abseil-cpp/*" ]
deps = [
":cord_internal",
":cordz_functions",
":cordz_handle",
":cordz_statistics",
":cordz_update_tracker",
"//third_party/abseil-cpp/absl/base",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/abseil-cpp/absl/container:inlined_vector",
"//third_party/abseil-cpp/absl/debugging:stacktrace",
"//third_party/abseil-cpp/absl/synchronization",
"//third_party/abseil-cpp/absl/types:span",
]
}
absl_source_set("cordz_update_scope") {
2022-08-29 17:59:48 +00:00
public = [ "internal/cordz_update_scope.h" ]
2022-05-09 04:19:04 +00:00
visibility = [ "//third_party/abseil-cpp/*" ]
deps = [
":cord_internal",
":cordz_info",
":cordz_update_tracker",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
]
}
absl_source_set("cordz_update_scope_test") {
testonly = true
2022-08-29 17:59:48 +00:00
sources = [ "internal/cordz_update_scope_test.cc" ]
2022-05-09 04:19:04 +00:00
deps = [
":cord_internal",
":cordz_info",
":cordz_test_helpers",
":cordz_update_scope",
":cordz_update_tracker",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
absl_source_set("cordz_sample_token") {
2022-08-29 17:59:48 +00:00
sources = [ "internal/cordz_sample_token.cc" ]
public = [ "internal/cordz_sample_token.h" ]
2022-05-09 04:19:04 +00:00
visibility = [ "//third_party/abseil-cpp/*" ]
deps = [
":cordz_handle",
":cordz_info",
"//third_party/abseil-cpp/absl/base:config",
]
}
absl_source_set("cordz_functions") {
2022-08-29 17:59:48 +00:00
sources = [ "internal/cordz_functions.cc" ]
public = [ "internal/cordz_functions.h" ]
2022-05-09 04:19:04 +00:00
visibility = [ "//third_party/abseil-cpp/*" ]
deps = [
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
2022-08-29 17:59:48 +00:00
"//third_party/abseil-cpp/absl/profiling:exponential_biased",
2022-05-09 04:19:04 +00:00
]
}
absl_source_set("cordz_statistics") {
2022-08-29 17:59:48 +00:00
public = [ "internal/cordz_statistics.h" ]
2022-05-09 04:19:04 +00:00
visibility = [ "//third_party/abseil-cpp/*" ]
deps = [
":cordz_update_tracker",
"//third_party/abseil-cpp/absl/base:config",
]
}
absl_source_set("cordz_functions_test") {
testonly = true
sources = [ "internal/cordz_functions_test.cc" ]
deps = [
":cordz_functions",
":cordz_test_helpers",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
# TODO(b/186638384): Re-enable when random is compilable on win32-archive-rel bot
# absl_source_set("cordz_handle_test") {
# testonly = true
# sources = [ "internal/cordz_handle_test.cc" ]
# deps = [
# ":cordz_handle",
# "//third_party/abseil-cpp/absl/base:config",
# "//third_party/abseil-cpp/absl/memory",
# "//third_party/abseil-cpp/absl/random",
# "//third_party/abseil-cpp/absl/random:distributions",
# "//third_party/abseil-cpp/absl/synchronization",
# "//third_party/abseil-cpp/absl/synchronization:thread_pool",
# "//third_party/abseil-cpp/absl/time",
# "//third_party/googletest:gmock",
# "//third_party/googletest:gtest",
# ]
# }
absl_source_set("cordz_info_test") {
testonly = true
sources = [ "internal/cordz_info_test.cc" ]
deps = [
":cord_internal",
":cordz_handle",
":cordz_info",
":cordz_statistics",
":cordz_test_helpers",
":cordz_update_tracker",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/debugging:stacktrace",
"//third_party/abseil-cpp/absl/debugging:symbolize",
"//third_party/abseil-cpp/absl/types:span",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
absl_source_set("cordz_info_statistics_test") {
testonly = true
sources = [ "internal/cordz_info_statistics_test.cc" ]
deps = [
":cord",
":cord_internal",
":cordz_info",
":cordz_sample_token",
":cordz_statistics",
":cordz_update_scope",
":cordz_update_tracker",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/synchronization",
"//third_party/abseil-cpp/absl/synchronization:thread_pool",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
# TODO(b/186638384): Re-enable when random is compilable on win32-archive-rel bot
# absl_source_set("cordz_sample_token_test") {
# testonly = true
# sources = [ "internal/cordz_sample_token_test.cc" ]
# deps = [
# ":cord_internal",
# ":cordz_handle",
# ":cordz_info",
# ":cordz_sample_token",
# ":cordz_test_helpers",
# "//third_party/abseil-cpp/absl/base:config",
# "//third_party/abseil-cpp/absl/memory",
# "//third_party/abseil-cpp/absl/random",
# "//third_party/abseil-cpp/absl/synchronization",
# "//third_party/abseil-cpp/absl/synchronization:thread_pool",
# "//third_party/abseil-cpp/absl/time",
# "//third_party/googletest:gmock",
# "//third_party/googletest:gtest",
# ]
# }
absl_source_set("cord_test_helpers") {
testonly = true
public = [ "cord_test_helpers.h" ]
deps = [
":cord",
":cord_internal",
":strings",
"//third_party/abseil-cpp/absl/base:config",
]
}
absl_source_set("cord_rep_test_util") {
testonly = true
2022-08-29 17:59:48 +00:00
public = [ "internal/cord_rep_test_util.h" ]
2022-05-09 04:19:04 +00:00
deps = [
":cord_internal",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
]
}
absl_source_set("cordz_test_helpers") {
testonly = true
2022-08-29 17:59:48 +00:00
public = [ "cordz_test_helpers.h" ]
2022-05-09 04:19:04 +00:00
deps = [
":cord",
":cord_internal",
":cordz_info",
":cordz_sample_token",
":cordz_statistics",
":cordz_update_tracker",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/googletest:gtest",
]
}
2022-08-29 17:59:48 +00:00
# TODO(b/186638384): Re-enable when random is compilable on win32-archive-rel bot
# absl_source_set("cord_test") {
# testonly = true
# public = [ "cord_test.cc" ]
# deps = [
# ":cord",
# ":cord_test_helpers",
# ":cordz_functions",
# ":cordz_test_helpers",
# ":str_format",
# ":strings",
# "//third_party/abseil-cpp/absl/base",
# "//third_party/abseil-cpp/absl/base:config",
# "//third_party/abseil-cpp/absl/base:core_headers",
# "//third_party/abseil-cpp/absl/base:endian",
# "//third_party/abseil-cpp/absl/base:raw_logging_internal",
# "//third_party/abseil-cpp/absl/container:fixed_array",
# "//third_party/abseil-cpp/absl/hash",
# "//third_party/abseil-cpp/absl/random",
# "//third_party/googletest:gtest",
# ]
# }
absl_source_set("cord_buffer_test") {
testonly = true
public = [ "cord_buffer_test.cc" ]
deps = [
":cord",
":cord_internal",
":cord_rep_test_util",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/types:span",
"//third_party/googletest:gtest",
]
}
2022-05-09 04:19:04 +00:00
absl_source_set("cordz_test") {
testonly = true
2022-08-29 17:59:48 +00:00
sources = [ "cordz_test.cc" ]
2022-05-09 04:19:04 +00:00
deps = [
":cord",
":cord_test_helpers",
":cordz_functions",
":cordz_info",
":cordz_sample_token",
":cordz_statistics",
":cordz_test_helpers",
":cordz_update_tracker",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
absl_source_set("pow10_helper") {
testonly = true
sources = [ "internal/pow10_helper.cc" ]
public = [ "internal/pow10_helper.h" ]
visibility = [ ":*" ]
deps = [ "//third_party/abseil-cpp/absl/base:config" ]
}
absl_source_set("ascii_test") {
testonly = true
sources = [ "ascii_test.cc" ]
deps = [
":strings",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/googletest:gtest",
]
}
absl_source_set("match_test") {
testonly = true
sources = [ "match_test.cc" ]
deps = [
":strings",
"//third_party/googletest:gtest",
]
}
absl_source_set("str_replace_test") {
testonly = true
sources = [ "str_replace_test.cc" ]
deps = [
":strings",
"//third_party/googletest:gtest",
]
}
absl_source_set("string_view_test") {
testonly = true
sources = [ "string_view_test.cc" ]
deps = [
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/base:dynamic_annotations",
"//third_party/googletest:gtest",
]
}
absl_source_set("cord_rep_btree_navigator_test") {
testonly = true
sources = [ "internal/cord_rep_btree_navigator_test.cc" ]
deps = [
":cord_internal",
":cord_rep_test_util",
":strings",
"//third_party/abseil-cpp/absl/base:config",
"//third_party/abseil-cpp/absl/base:raw_logging_internal",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}