diff options
Diffstat (limited to 'absl/debugging')
-rw-r--r-- | absl/debugging/BUILD.bazel | 95 | ||||
-rw-r--r-- | absl/debugging/CMakeLists.txt | 101 |
2 files changed, 142 insertions, 54 deletions
diff --git a/absl/debugging/BUILD.bazel b/absl/debugging/BUILD.bazel index 6e867cef..52b407c0 100644 --- a/absl/debugging/BUILD.bazel +++ b/absl/debugging/BUILD.bazel @@ -219,19 +219,8 @@ cc_library( cc_library( name = "demangle_internal", - srcs = [ - "internal/decode_rust_punycode.cc", - "internal/demangle.cc", - "internal/demangle_rust.cc", - "internal/utf8_for_code_point.cc", - ], - hdrs = [ - "internal/bounded_utf8_length_sequence.h", - "internal/decode_rust_punycode.h", - "internal/demangle.h", - "internal/demangle_rust.h", - "internal/utf8_for_code_point.h", - ], + srcs = ["internal/demangle.cc"], + hdrs = ["internal/demangle.h"], copts = ABSL_DEFAULT_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, visibility = [ @@ -239,6 +228,7 @@ cc_library( "//absl/debugging:__pkg__", ], deps = [ + ":demangle_rust", "//absl/base", "//absl/base:config", "//absl/base:core_headers", @@ -248,69 +238,116 @@ cc_library( ) cc_test( - name = "bounded_utf8_length_sequence_test", - srcs = ["internal/bounded_utf8_length_sequence_test.cc"], + name = "demangle_test", + srcs = ["internal/demangle_test.cc"], copts = ABSL_TEST_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ ":demangle_internal", + ":stack_consumption", "//absl/base:config", + "//absl/base:core_headers", + "//absl/log", + "//absl/memory", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) +cc_library( + name = "bounded_utf8_length_sequence", + hdrs = ["internal/bounded_utf8_length_sequence.h"], + copts = ABSL_DEFAULT_COPTS, + linkopts = ABSL_DEFAULT_LINKOPTS, + deps = [ + "//absl/base:config", + "//absl/numeric:bits", + ], +) + cc_test( - name = "decode_rust_punycode_test", - srcs = ["internal/decode_rust_punycode_test.cc"], + name = "bounded_utf8_length_sequence_test", + srcs = ["internal/bounded_utf8_length_sequence_test.cc"], copts = ABSL_TEST_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ - ":demangle_internal", + ":bounded_utf8_length_sequence", "//absl/base:config", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) +cc_library( + name = "decode_rust_punycode", + srcs = ["internal/decode_rust_punycode.cc"], + hdrs = ["internal/decode_rust_punycode.h"], + copts = ABSL_DEFAULT_COPTS, + linkopts = ABSL_DEFAULT_LINKOPTS, + deps = [ + ":bounded_utf8_length_sequence", + ":utf8_for_code_point", + "//absl/base:config", + "//absl/base:nullability", + ], +) + cc_test( - name = "demangle_rust_test", - srcs = ["internal/demangle_rust_test.cc"], + name = "decode_rust_punycode_test", + srcs = ["internal/decode_rust_punycode_test.cc"], copts = ABSL_TEST_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ - ":demangle_internal", + ":decode_rust_punycode", "//absl/base:config", - "//absl/base:core_headers", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) +cc_library( + name = "demangle_rust", + srcs = ["internal/demangle_rust.cc"], + hdrs = ["internal/demangle_rust.h"], + copts = ABSL_DEFAULT_COPTS, + linkopts = ABSL_DEFAULT_LINKOPTS, + deps = [ + ":decode_rust_punycode", + "//absl/base:config", + "//absl/base:core_headers", + ], +) + cc_test( - name = "demangle_test", - srcs = ["internal/demangle_test.cc"], + name = "demangle_rust_test", + srcs = ["internal/demangle_rust_test.cc"], copts = ABSL_TEST_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ - ":demangle_internal", - ":stack_consumption", + ":demangle_rust", "//absl/base:config", "//absl/base:core_headers", - "//absl/log", - "//absl/memory", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", ], ) +cc_library( + name = "utf8_for_code_point", + srcs = ["internal/utf8_for_code_point.cc"], + hdrs = ["internal/utf8_for_code_point.h"], + copts = ABSL_DEFAULT_COPTS, + linkopts = ABSL_DEFAULT_LINKOPTS, + deps = ["//absl/base:config"], +) + cc_test( name = "utf8_for_code_point_test", srcs = ["internal/utf8_for_code_point_test.cc"], copts = ABSL_TEST_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ - ":demangle_internal", + ":utf8_for_code_point", "//absl/base:config", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", diff --git a/absl/debugging/CMakeLists.txt b/absl/debugging/CMakeLists.txt index 14707775..a96b4f39 100644 --- a/absl/debugging/CMakeLists.txt +++ b/absl/debugging/CMakeLists.txt @@ -195,39 +195,77 @@ absl_cc_library( NAME demangle_internal HDRS - "internal/bounded_utf8_length_sequence.h" - "internal/decode_rust_punycode.h" "internal/demangle.h" - "internal/demangle_rust.h" - "internal/utf8_for_code_point.h" SRCS - "internal/decode_rust_punycode.cc" "internal/demangle.cc" - "internal/demangle_rust.cc" - "internal/utf8_for_code_point.cc" COPTS ${ABSL_DEFAULT_COPTS} DEPS - absl::base - absl::bits - absl::core_headers - absl::nullability + absl::config + absl::demangle_rust PUBLIC ) absl_cc_test( NAME + demangle_test + SRCS + "internal/demangle_test.cc" + COPTS + ${ABSL_TEST_COPTS} + DEPS + absl::demangle_internal + absl::stack_consumption + absl::config + absl::core_headers + absl::log + absl::memory + GTest::gmock_main +) + +# Internal-only target, do not depend on directly. +absl_cc_library( + NAME + bounded_utf8_length_sequence + HDRS + "internal/bounded_utf8_length_sequence.h" + COPTS + ${ABSL_DEFAULT_COPTS} + DEPS + absl::bits + absl::config +) + +absl_cc_test( + NAME bounded_utf8_length_sequence_test SRCS "internal/bounded_utf8_length_sequence_test.cc" COPTS ${ABSL_TEST_COPTS} DEPS - absl::demangle_internal + absl::bounded_utf8_length_sequence absl::config GTest::gmock_main ) +# Internal-only target, do not depend on directly. +absl_cc_library( + NAME + decode_rust_punycode + HDRS + "internal/decode_rust_punycode.h" + SRCS + "internal/decode_rust_punycode.cc" + COPTS + ${ABSL_DEFAULT_COPTS} + DEPS + absl::bounded_utf8_length_sequence + absl::config + absl::nullability + absl::utf8_for_code_point +) + absl_cc_test( NAME decode_rust_punycode_test @@ -236,11 +274,27 @@ absl_cc_test( COPTS ${ABSL_TEST_COPTS} DEPS - absl::demangle_internal + absl::decode_rust_punycode absl::config GTest::gmock_main ) +# Internal-only target, do not depend on directly. +absl_cc_library( + NAME + demangle_rust + HDRS + "internal/demangle_rust.h" + SRCS + "internal/demangle_rust.cc" + COPTS + ${ABSL_DEFAULT_COPTS} + DEPS + absl::config + absl::core_headers + absl::decode_rust_punycode +) + absl_cc_test( NAME demangle_rust_test @@ -249,26 +303,23 @@ absl_cc_test( COPTS ${ABSL_TEST_COPTS} DEPS - absl::demangle_internal + absl::demangle_rust absl::config GTest::gmock_main ) -absl_cc_test( +# Internal-only target, do not depend on directly. +absl_cc_library( NAME - demangle_test + utf8_for_code_point + HDRS + "internal/utf8_for_code_point.h" SRCS - "internal/demangle_test.cc" + "internal/utf8_for_code_point.cc" COPTS - ${ABSL_TEST_COPTS} + ${ABSL_DEFAULT_COPTS} DEPS - absl::demangle_internal - absl::stack_consumption absl::config - absl::core_headers - absl::log - absl::memory - GTest::gmock_main ) absl_cc_test( @@ -279,7 +330,7 @@ absl_cc_test( COPTS ${ABSL_TEST_COPTS} DEPS - absl::demangle_internal + absl::utf8_for_code_point absl::config GTest::gmock_main ) |