diff options
author | Derek Mauro <dmauro@google.com> | 2023-12-05 07:07:07 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-12-05 07:07:49 -0800 |
commit | 7b6c17e378224844d8663a410da2da5353b205b9 (patch) | |
tree | 2f2b43000c977e65ce226cd04f13fdd389a7a0b6 /absl/log/CMakeLists.txt | |
parent | a39d71a80fbdf0ee2f00222943c1ca08361cec20 (diff) |
Add VLOG and friends
These are methods for configurable verbose logging
PiperOrigin-RevId: 588059727
Change-Id: Ib3703edd2493050a5da8b30e88b21adc643b1f7f
Diffstat (limited to 'absl/log/CMakeLists.txt')
-rw-r--r-- | absl/log/CMakeLists.txt | 89 |
1 files changed, 76 insertions, 13 deletions
diff --git a/absl/log/CMakeLists.txt b/absl/log/CMakeLists.txt index aa008865..916b5bea 100644 --- a/absl/log/CMakeLists.txt +++ b/absl/log/CMakeLists.txt @@ -157,6 +157,7 @@ absl_cc_library( absl::log_internal_conditions absl::log_internal_message absl::log_internal_strip + absl::vlog_is_on ) absl_cc_library( @@ -418,6 +419,7 @@ absl_cc_library( ${ABSL_DEFAULT_LINKOPTS} DEPS absl::log_internal_log_impl + absl::vlog_is_on PUBLIC ) @@ -481,6 +483,7 @@ absl_cc_library( absl::flags absl::flags_marshalling absl::strings + absl::vlog_config_internal PUBLIC ) @@ -536,6 +539,7 @@ absl_cc_library( ${ABSL_DEFAULT_LINKOPTS} DEPS absl::log_internal_log_impl + absl::vlog_is_on PUBLIC ) @@ -673,19 +677,78 @@ absl_cc_library( ) absl_cc_library( - NAME - log_internal_fnmatch - SRCS - "internal/fnmatch.cc" - HDRS - "internal/fnmatch.h" - COPTS - ${ABSL_DEFAULT_COPTS} - LINKOPTS - ${ABSL_DEFAULT_LINKOPTS} - DEPS - absl::config - absl::strings + NAME + vlog_config_internal + SRCS + "vlog_config.cc" + HDRS + "vlog_config.h" + COPTS + ${ABSL_DEFAULT_COPTS} + LINKOPTS + ${ABSL_DEFAULT_LINKOPTS} + DEPS + absl::base + absl::config + absl::core_headers + absl::log_internal_fnmatch + absl::memory + absl::strings + absl::synchronization + absl::optional +) + + +absl_cc_library( + NAME + vlog_is_on + COPTS + ${ABSL_DEFAULT_COPTS} + LINKOPTS + ${ABSL_DEFAULT_LINKOPTS} + HDRS + "vlog_is_on.h" + DEPS + absl::vlog_config_internal + absl::config + absl::core_headers + absl::strings +) + +absl_cc_test( + NAME + vlog_is_on_test + SRCS + "vlog_is_on_test.cc" + COPTS + ${ABSL_TEST_COPTS} + LINKOPTS + ${ABSL_DEFAULT_LINKOPTS} + DEPS + absl::log_flags + absl::log + absl::scoped_mock_log + absl::vlog_is_on + absl::log_severity + absl::flags + absl::optional + GTest::gmock_main +) + +absl_cc_library( + NAME + log_internal_fnmatch + SRCS + "internal/fnmatch.cc" + HDRS + "internal/fnmatch.h" + COPTS + ${ABSL_DEFAULT_COPTS} + LINKOPTS + ${ABSL_DEFAULT_LINKOPTS} + DEPS + absl::config + absl::strings ) # Test targets |