Adrien Devresse | d5134a7 | 2017-09-26 20:37:27 -0700 | [diff] [blame] | 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 | # |
nik7273 | 38b7043 | 2019-03-08 10:27:53 -0500 | [diff] [blame] | 8 | # https://www.apache.org/licenses/LICENSE-2.0 |
Adrien Devresse | d5134a7 | 2017-09-26 20:37:27 -0700 | [diff] [blame] | 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 | |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 17 | absl_cc_library( |
| 18 | NAME |
| 19 | time |
| 20 | HDRS |
| 21 | "civil_time.h" |
| 22 | "clock.h" |
| 23 | "time.h" |
| 24 | SRCS |
Abseil Team | d9aa92d | 2019-08-13 10:20:16 -0700 | [diff] [blame] | 25 | "civil_time.cc" |
| 26 | "clock.cc" |
| 27 | "duration.cc" |
| 28 | "format.cc" |
| 29 | "internal/get_current_time_chrono.inc" |
| 30 | "internal/get_current_time_posix.inc" |
| 31 | "time.cc" |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 32 | COPTS |
| 33 | ${ABSL_DEFAULT_COPTS} |
| 34 | DEPS |
| 35 | absl::base |
Abseil Team | d9aa92d | 2019-08-13 10:20:16 -0700 | [diff] [blame] | 36 | absl::civil_time |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 37 | absl::core_headers |
| 38 | absl::int128 |
Abseil Team | d9aa92d | 2019-08-13 10:20:16 -0700 | [diff] [blame] | 39 | absl::raw_logging_internal |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 40 | absl::strings |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 41 | absl::time_zone |
| 42 | PUBLIC |
| 43 | ) |
| 44 | |
| 45 | absl_cc_library( |
| 46 | NAME |
| 47 | civil_time |
| 48 | HDRS |
| 49 | "internal/cctz/include/cctz/civil_time.h" |
| 50 | "internal/cctz/include/cctz/civil_time_detail.h" |
| 51 | SRCS |
Abseil Team | af78826 | 2018-04-23 08:17:58 -0700 | [diff] [blame] | 52 | "internal/cctz/src/civil_time_detail.cc" |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 53 | COPTS |
| 54 | ${ABSL_DEFAULT_COPTS} |
Adrien Devresse | d5134a7 | 2017-09-26 20:37:27 -0700 | [diff] [blame] | 55 | ) |
| 56 | |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 57 | absl_cc_library( |
| 58 | NAME |
| 59 | time_zone |
| 60 | HDRS |
| 61 | "internal/cctz/include/cctz/time_zone.h" |
| 62 | "internal/cctz/include/cctz/zone_info_source.h" |
| 63 | SRCS |
| 64 | "internal/cctz/src/time_zone_fixed.cc" |
| 65 | "internal/cctz/src/time_zone_fixed.h" |
| 66 | "internal/cctz/src/time_zone_format.cc" |
| 67 | "internal/cctz/src/time_zone_if.cc" |
| 68 | "internal/cctz/src/time_zone_if.h" |
| 69 | "internal/cctz/src/time_zone_impl.cc" |
| 70 | "internal/cctz/src/time_zone_impl.h" |
| 71 | "internal/cctz/src/time_zone_info.cc" |
| 72 | "internal/cctz/src/time_zone_info.h" |
| 73 | "internal/cctz/src/time_zone_libc.cc" |
| 74 | "internal/cctz/src/time_zone_libc.h" |
| 75 | "internal/cctz/src/time_zone_lookup.cc" |
| 76 | "internal/cctz/src/time_zone_posix.cc" |
| 77 | "internal/cctz/src/time_zone_posix.h" |
| 78 | "internal/cctz/src/tzfile.h" |
| 79 | "internal/cctz/src/zone_info_source.cc" |
| 80 | COPTS |
| 81 | ${ABSL_DEFAULT_COPTS} |
Michael Chiu | 3bd3028 | 2019-03-15 10:42:22 -0400 | [diff] [blame] | 82 | DEPS |
Jürg Billeter | c24ead7 | 2023-05-24 08:34:21 +0200 | [diff] [blame] | 83 | Threads::Threads |
Daniel Schürmann | 4b6e59a | 2023-07-31 12:46:00 -0700 | [diff] [blame] | 84 | # TODO(#1495): Use $<LINK_LIBRARY:FRAMEWORK,CoreFoundation> once our |
| 85 | # minimum CMake version >= 3.24 |
Eduardo Menges Mattje | db1255c | 2024-07-11 08:17:56 -0700 | [diff] [blame] | 86 | $<$<PLATFORM_ID:Darwin,iOS,tvOS,visionOS,watchOS>:-Wl,-framework,CoreFoundation> |
Adrien Devresse | d5134a7 | 2017-09-26 20:37:27 -0700 | [diff] [blame] | 87 | ) |
Adrien Devresse | d5134a7 | 2017-09-26 20:37:27 -0700 | [diff] [blame] | 88 | |
Abseil Team | 6f43f5b | 2022-03-31 17:42:13 -0700 | [diff] [blame] | 89 | # Internal-only target, do not depend on directly. |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 90 | absl_cc_library( |
| 91 | NAME |
Abseil Team | d9aa92d | 2019-08-13 10:20:16 -0700 | [diff] [blame] | 92 | time_internal_test_util |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 93 | HDRS |
| 94 | "internal/test_util.h" |
| 95 | SRCS |
| 96 | "internal/test_util.cc" |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 97 | COPTS |
| 98 | ${ABSL_DEFAULT_COPTS} |
| 99 | DEPS |
| 100 | absl::time |
Abseil Team | 184cf25 | 2020-07-30 13:58:50 -0700 | [diff] [blame] | 101 | absl::config |
Abseil Team | d9aa92d | 2019-08-13 10:20:16 -0700 | [diff] [blame] | 102 | absl::raw_logging_internal |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 103 | absl::time_zone |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 104 | TESTONLY |
| 105 | ) |
| 106 | |
| 107 | absl_cc_test( |
| 108 | NAME |
Adrien Devresse | d5134a7 | 2017-09-26 20:37:27 -0700 | [diff] [blame] | 109 | time_test |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 110 | SRCS |
| 111 | "civil_time_test.cc" |
| 112 | "clock_test.cc" |
| 113 | "duration_test.cc" |
| 114 | "format_test.cc" |
| 115 | "time_test.cc" |
| 116 | "time_zone_test.cc" |
| 117 | COPTS |
| 118 | ${ABSL_TEST_COPTS} |
| 119 | DEPS |
Abseil Team | d9aa92d | 2019-08-13 10:20:16 -0700 | [diff] [blame] | 120 | absl::time_internal_test_util |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 121 | absl::time |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 122 | absl::config |
| 123 | absl::core_headers |
Abseil Team | 52578ed | 2023-03-13 17:04:58 -0700 | [diff] [blame] | 124 | absl::strings |
| 125 | absl::str_format |
Abseil Team | 389ec3f | 2018-12-13 10:30:03 -0800 | [diff] [blame] | 126 | absl::time_zone |
Florin Crișan | 8f92175 | 2021-06-10 02:26:40 +0300 | [diff] [blame] | 127 | GTest::gmock_main |
Adrien Devresse | d5134a7 | 2017-09-26 20:37:27 -0700 | [diff] [blame] | 128 | ) |
Gennadiy Rozental | 4bc7568 | 2022-10-18 02:34:29 -0700 | [diff] [blame] | 129 | |
| 130 | absl_cc_test( |
| 131 | NAME |
| 132 | flag_test |
| 133 | SRCS |
| 134 | "flag_test.cc" |
| 135 | COPTS |
| 136 | ${ABSL_TEST_COPTS} |
| 137 | DEPS |
| 138 | absl::flags |
| 139 | absl::flags_reflection |
| 140 | GTest::gmock_main |
| 141 | ) |