1package { 2 default_applicable_licenses: ["libabsl_license"], 3} 4 5license { 6 name: "libabsl_license", 7 visibility: [":__subpackages__"], 8 license_kinds: ["SPDX-license-identifier-Apache-2.0"], 9 license_text: ["LICENSE"], 10} 11 12cc_library_headers { 13 name: "libabsl_headers", 14 device_supported: false, 15 host_supported: true, 16 export_include_dirs: ["."], 17} 18 19cc_defaults { 20 name: "libabsl_library_defaults", 21 header_libs: ["libabsl_headers"], 22 export_header_lib_headers: ["libabsl_headers"], 23 whole_static_libs: ["libabsl_base"], 24} 25 26cc_library_host_static { 27 name: "libabsl_base", 28 defaults: ["libabsl_library_defaults"], 29 srcs: [ 30 "absl/base/internal/cycleclock.cc", 31 "absl/base/internal/low_level_alloc.cc", 32 "absl/base/internal/raw_logging.cc", 33 "absl/base/internal/scoped_set_env.cc", 34 "absl/base/internal/spinlock.cc", 35 "absl/base/internal/spinlock_wait.cc", 36 "absl/base/internal/strerror.cc", 37 "absl/base/internal/sysinfo.cc", 38 "absl/base/internal/thread_identity.cc", 39 "absl/base/internal/throw_delegate.cc", 40 "absl/base/internal/unscaledcycleclock.cc", 41 "absl/base/log_severity.cc", 42 ], 43 exclude_static_libs: ["libabsl_base"], // don't depend on itself 44} 45 46cc_library_host_static { 47 name: "libabsl_container", 48 defaults: ["libabsl_library_defaults"], 49 srcs: [ 50 "absl/container/internal/test_instance_tracker.cc", 51 "absl/container/internal/hashtablez_sampler.cc", 52 "absl/container/internal/hashtablez_sampler_force_weak_definition.cc", 53 "absl/container/internal/raw_hash_set.cc", 54 ], 55} 56 57cc_library_host_static { 58 name: "libabsl_debugging", 59 defaults: ["libabsl_library_defaults"], 60 srcs: [ 61 "absl/debugging/failure_signal_handler.cc", 62 "absl/debugging/internal/address_is_readable.cc", 63 "absl/debugging/internal/demangle.cc", 64 "absl/debugging/internal/elf_mem_image.cc", 65 "absl/debugging/internal/examine_stack.cc", 66 "absl/debugging/internal/stack_consumption.cc", 67 "absl/debugging/internal/vdso_support.cc", 68 "absl/debugging/leak_check.cc", 69 "absl/debugging/stacktrace.cc", 70 "absl/debugging/symbolize.cc", 71 ], 72} 73 74cc_library_host_static { 75 name: "libabsl_flags", 76 defaults: ["libabsl_library_defaults"], 77 srcs: [ 78 "absl/flags/commandlineflag.cc", 79 "absl/flags/flag_test_defs.cc", 80 "absl/flags/flag.cc", 81 "absl/flags/internal/commandlineflag.cc", 82 "absl/flags/internal/flag.cc", 83 "absl/flags/internal/private_handle_accessor.cc", 84 "absl/flags/internal/program_name.cc", 85 "absl/flags/internal/usage.cc", 86 "absl/flags/marshalling.cc", 87 "absl/flags/parse.cc", 88 "absl/flags/reflection.cc", 89 "absl/flags/usage_config.cc", 90 "absl/flags/usage.cc", 91 ], 92} 93 94cc_library_host_static { 95 name: "libabsl_hash", 96 defaults: ["libabsl_library_defaults"], 97 srcs: [ 98 "absl/hash/internal/city.cc", 99 "absl/hash/internal/hash.cc", 100 "absl/hash/internal/low_level_hash.cc", 101 "absl/hash/internal/print_hash_of.cc", 102 ], 103} 104 105cc_library_host_static { 106 name: "libabsl_numeric", 107 defaults: ["libabsl_library_defaults"], 108 srcs: ["absl/numeric/int128.cc"], 109} 110 111cc_library_host_static { 112 name: "libabsl_profiling", 113 defaults: ["libabsl_library_defaults"], 114 srcs: [ 115 "absl/profiling/internal/exponential_biased.cc", 116 "absl/profiling/internal/periodic_sampler.cc", 117 ], 118} 119 120cc_library_host_static { 121 name: "libabsl_random", 122 defaults: ["libabsl_library_defaults"], 123 srcs: [ 124 "absl/random/discrete_distribution.cc", 125 "absl/random/gaussian_distribution.cc", 126 "absl/random/internal/chi_square.cc", 127 "absl/random/internal/distribution_test_util.cc", 128 "absl/random/internal/gaussian_distribution_gentables.cc", 129 "absl/random/internal/nanobenchmark.cc", 130 "absl/random/internal/pool_urbg.cc", 131 "absl/random/internal/randen_benchmarks.cc", 132 "absl/random/internal/randen.cc", 133 "absl/random/internal/randen_detect.cc", 134 "absl/random/internal/randen_hwaes.cc", 135 "absl/random/internal/randen_round_keys.cc", 136 "absl/random/internal/randen_slow.cc", 137 "absl/random/internal/seed_material.cc", 138 "absl/random/seed_gen_exception.cc", 139 "absl/random/seed_sequences.cc", 140 ], 141 cflags: ["-Wno-unused-parameter"], 142} 143 144cc_library_host_static { 145 name: "libabsl_status", 146 defaults: ["libabsl_library_defaults"], 147 srcs: [ 148 "absl/status/status.cc", 149 "absl/status/status_payload_printer.cc", 150 "absl/status/statusor.cc", 151 ], 152} 153 154cc_library_host_static { 155 name: "libabsl_strings", 156 defaults: ["libabsl_library_defaults"], 157 srcs: [ 158 "absl/strings/ascii.cc", 159 "absl/strings/charconv.cc", 160 "absl/strings/cord_analysis.cc", 161 "absl/strings/cord_buffer.cc", 162 "absl/strings/cord.cc", 163 "absl/strings/escaping.cc", 164 "absl/strings/internal/charconv_bigint.cc", 165 "absl/strings/internal/charconv_parse.cc", 166 "absl/strings/internal/cord_internal.cc", 167 "absl/strings/internal/cord_rep_btree.cc", 168 "absl/strings/internal/cord_rep_btree_navigator.cc", 169 "absl/strings/internal/cord_rep_btree_reader.cc", 170 "absl/strings/internal/cord_rep_consume.cc", 171 "absl/strings/internal/cord_rep_crc.cc", 172 "absl/strings/internal/cord_rep_ring.cc", 173 "absl/strings/internal/cordz_functions.cc", 174 "absl/strings/internal/cordz_handle.cc", 175 "absl/strings/internal/cordz_info.cc", 176 "absl/strings/internal/cordz_sample_token.cc", 177 "absl/strings/internal/escaping.cc", 178 "absl/strings/internal/memutil.cc", 179 "absl/strings/internal/ostringstream.cc", 180 "absl/strings/internal/pow10_helper.cc", 181 "absl/strings/internal/str_format/arg.cc", 182 "absl/strings/internal/str_format/bind.cc", 183 "absl/strings/internal/str_format/extension.cc", 184 "absl/strings/internal/str_format/float_conversion.cc", 185 "absl/strings/internal/str_format/output.cc", 186 "absl/strings/internal/str_format/parser.cc", 187 "absl/strings/internal/utf8.cc", 188 "absl/strings/match.cc", 189 "absl/strings/numbers.cc", 190 "absl/strings/str_cat.cc", 191 "absl/strings/str_replace.cc", 192 "absl/strings/str_split.cc", 193 "absl/strings/string_view.cc", 194 "absl/strings/substitute.cc", 195 ], 196} 197 198cc_library_host_static { 199 name: "libabsl_synchronization", 200 defaults: ["libabsl_library_defaults"], 201 srcs: [ 202 "absl/synchronization/barrier.cc", 203 "absl/synchronization/blocking_counter.cc", 204 "absl/synchronization/internal/create_thread_identity.cc", 205 "absl/synchronization/internal/per_thread_sem.cc", 206 "absl/synchronization/internal/waiter.cc", 207 "absl/synchronization/internal/graphcycles.cc", 208 "absl/synchronization/mutex.cc", 209 "absl/synchronization/notification.cc", 210 ], 211} 212 213cc_library_host_static { 214 name: "libabsl_time", 215 defaults: ["libabsl_library_defaults"], 216 srcs: [ 217 "absl/time/civil_time.cc", 218 "absl/time/clock.cc", 219 "absl/time/duration.cc", 220 "absl/time/format.cc", 221 "absl/time/internal/cctz/src/civil_time_detail.cc", 222 "absl/time/internal/cctz/src/time_zone_fixed.cc", 223 "absl/time/internal/cctz/src/time_zone_format.cc", 224 "absl/time/internal/cctz/src/time_zone_if.cc", 225 "absl/time/internal/cctz/src/time_zone_impl.cc", 226 "absl/time/internal/cctz/src/time_zone_info.cc", 227 "absl/time/internal/cctz/src/time_zone_libc.cc", 228 "absl/time/internal/cctz/src/time_zone_lookup.cc", 229 "absl/time/internal/cctz/src/time_zone_posix.cc", 230 "absl/time/internal/cctz/src/zone_info_source.cc", 231 "absl/time/time.cc", 232 ], 233} 234 235cc_library_host_static { 236 name: "libabsl_types", 237 defaults: ["libabsl_library_defaults"], 238 srcs: [ 239 "absl/types/bad_any_cast.cc", 240 "absl/types/bad_optional_access.cc", 241 "absl/types/bad_variant_access.cc", 242 ], 243} 244