Skip to content

Commit

Permalink
Export of internal Abseil changes
Browse files Browse the repository at this point in the history
--
afa44fa0245a1cfb1824ef9697b3fa77fa9615c9 by Laramie Leavitt <lar@google.com>:

Comment CMakeLists.txt about internal absl_cc_library() targets.

From what I can tell, these are the CMake targets that are public:

    absl::algorithm
    absl::algorithm_container
    absl::base
    absl::core_headers
    absl::dynamic_annotations
    absl::log_severity
    absl::cleanup
    absl::btree
    absl::fixed_array
    absl::flat_hash_map
    absl::flat_hash_set
    absl::inlined_vector
    absl::node_hash_map
    absl::node_hash_set
    absl::debugging
    absl::failure_signal_handler
    absl::leak_check
    absl::leak_check_disable
    absl::stacktrace
    absl::symbolize
    absl::flags
    absl::flags_commandlineflag
    absl::flags_config
    absl::flags_marshalling
    absl::flags_parse
    absl::flags_reflection
    absl::flags_usage
    absl::bind_front
    absl::function_ref
    absl::hash
    absl::hash_testing
    absl::memory
    absl::meta
    absl::type_traits
    absl::bits
    absl::int128
    absl::numeric
    absl::numeric_representation
    absl::exponential_biased
    absl::periodic_sampler
    absl::sample_recorder
    absl::random_bit_gen_ref
    absl::random_distributions
    absl::random_mocking_bit_gen
    absl::random_random
    absl::random_seed_gen_exception
    absl::random_seed_sequences
    absl::status
    absl::statusor
    absl::cord
    absl::cord_test_helpers
    absl::str_format
    absl::strings
    absl::synchronization
    absl::civil_time
    absl::time
    absl::time_zone
    absl::any
    absl::bad_any_cast
    absl::bad_optional_access
    absl::bad_variant_access
    absl::compare
    absl::optional
    absl::span
    absl::variant
    absl::utility

PiperOrigin-RevId: 438702788
Change-Id: Icf611c35e88f03cd2493a95f61617605305d4e8e

--
a99f60847578e6c0df6befadb29a01c86def0d21 by Abseil Team <absl-team@google.com>:

Internal change

PiperOrigin-RevId: 438647928
Change-Id: I141eadd17d6e8607df25ebc893aecefa0239a72f

--
b23e77e8f62a77023188594390c9e491c507d22c by Abseil Team <absl-team@google.com>:

Internal change

PiperOrigin-RevId: 438628502
Change-Id: I40c4297716c8c1621ba8b02a22393bfcbefb5b5e
GitOrigin-RevId: afa44fa0245a1cfb1824ef9697b3fa77fa9615c9
  • Loading branch information
Abseil Team authored and dinord committed Apr 4, 2022
1 parent 4dcae40 commit 6f43f5b
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 19 deletions.
16 changes: 16 additions & 0 deletions absl/base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

find_library(LIBRT rt)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
atomic_hook
Expand All @@ -28,6 +29,7 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
errno_saver
Expand All @@ -52,6 +54,7 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
raw_logging_internal
Expand All @@ -68,6 +71,7 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
spinlock_wait
Expand Down Expand Up @@ -131,6 +135,7 @@ absl_cc_library(
PUBLIC
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
malloc_internal
Expand All @@ -151,6 +156,7 @@ absl_cc_library(
Threads::Threads
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
base_internal
Expand Down Expand Up @@ -207,6 +213,7 @@ absl_cc_library(
PUBLIC
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
throw_delegate
Expand All @@ -221,6 +228,7 @@ absl_cc_library(
absl::raw_logging_internal
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
exception_testing
Expand All @@ -234,6 +242,7 @@ absl_cc_library(
TESTONLY
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
pretty_function
Expand All @@ -243,6 +252,7 @@ absl_cc_library(
${ABSL_DEFAULT_COPTS}
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
exception_safety_testing
Expand Down Expand Up @@ -276,6 +286,7 @@ absl_cc_test(
GTest::gtest_main
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
atomic_hook_test_helper
Expand Down Expand Up @@ -375,6 +386,7 @@ absl_cc_test(
GTest::gtest_main
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
spinlock_test_common
Expand Down Expand Up @@ -409,6 +421,7 @@ absl_cc_test(
GTest::gtest_main
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
endian
Expand Down Expand Up @@ -519,6 +532,7 @@ absl_cc_test(
GTest::gtest_main
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
scoped_set_env
Expand Down Expand Up @@ -570,6 +584,7 @@ absl_cc_test(
GTest::gtest_main
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
strerror
Expand Down Expand Up @@ -601,6 +616,7 @@ absl_cc_test(
GTest::gtest_main
)

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
fast_type_id
Expand Down
1 change: 1 addition & 0 deletions absl/cleanup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Internal-only target, do not depend on directly.
absl_cc_library(
NAME
cleanup_internal
Expand Down
29 changes: 11 additions & 18 deletions absl/container/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -217,20 +217,13 @@ cc_test(
],
)

NOTEST_TAGS_NONMOBILE = [
"no_test_darwin_x86_64",
"no_test_loonix",
]

NOTEST_TAGS_MOBILE = [
"no_test_android_arm",
"no_test_android_arm64",
"no_test_android_x86",
"no_test_ios_x86_64",
]

NOTEST_TAGS = NOTEST_TAGS_MOBILE + NOTEST_TAGS_NONMOBILE

cc_library(
name = "flat_hash_map",
hdrs = ["flat_hash_map.h"],
Expand All @@ -251,7 +244,7 @@ cc_test(
srcs = ["flat_hash_map_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
deps = [
":flat_hash_map",
":hash_generator_testing",
Expand Down Expand Up @@ -285,7 +278,7 @@ cc_test(
srcs = ["flat_hash_set_test.cc"],
copts = ABSL_TEST_COPTS + ["-DUNORDERED_SET_CXX17"],
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
deps = [
":flat_hash_set",
":hash_generator_testing",
Expand Down Expand Up @@ -321,7 +314,7 @@ cc_test(
srcs = ["node_hash_map_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
deps = [
":hash_generator_testing",
":node_hash_map",
Expand Down Expand Up @@ -354,7 +347,7 @@ cc_test(
srcs = ["node_hash_set_test.cc"],
copts = ABSL_TEST_COPTS + ["-DUNORDERED_SET_CXX17"],
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
deps = [
":node_hash_set",
":unordered_set_constructor_test",
Expand Down Expand Up @@ -383,7 +376,7 @@ cc_test(
srcs = ["internal/container_memory_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
deps = [
":container_memory",
":test_instance_tracker",
Expand All @@ -410,7 +403,7 @@ cc_test(
srcs = ["internal/hash_function_defaults_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS,
tags = NOTEST_TAGS_MOBILE + ["no_test_loonix"],
deps = [
":hash_function_defaults",
"//absl/hash",
Expand Down Expand Up @@ -608,7 +601,7 @@ cc_test(
srcs = ["internal/raw_hash_set_test.cc"],
copts = ABSL_TEST_COPTS,
linkstatic = 1,
tags = NOTEST_TAGS,
tags = NOTEST_TAGS_MOBILE + ["no_test_loonix"],
deps = [
":container_memory",
":hash_function_defaults",
Expand Down Expand Up @@ -698,7 +691,7 @@ cc_test(
srcs = ["internal/layout_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS,
tags = NOTEST_TAGS_MOBILE + ["no_test_loonix"],
visibility = ["//visibility:private"],
deps = [
":layout",
Expand Down Expand Up @@ -845,7 +838,7 @@ cc_test(
srcs = ["internal/unordered_set_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
deps = [
":unordered_set_constructor_test",
":unordered_set_lookup_test",
Expand All @@ -860,7 +853,7 @@ cc_test(
srcs = ["internal/unordered_map_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
deps = [
":unordered_map_constructor_test",
":unordered_map_lookup_test",
Expand All @@ -875,7 +868,7 @@ cc_test(
srcs = ["sample_element_size_test.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
tags = NOTEST_TAGS_NONMOBILE,
tags = ["no_test_loonix"],
visibility = ["//visibility:private"],
deps = [
":flat_hash_map",
Expand Down
Loading

0 comments on commit 6f43f5b

Please sign in to comment.