• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
12// Monolithic module for use on device. Currently restricted to 3P libraries
13// which require it as a dependency. See go/absl-android for more information.
14cc_library_static {
15    name: "libabsl",
16    host_supported: true,
17    vendor_available: true,
18    product_available: true,
19    recovery_available: true,
20    srcs: [
21        "absl/**/*.cc",
22    ],
23    exclude_srcs: [
24        "absl/**/*benchmark.cc",
25        "absl/**/*benchmarks.cc",
26        "absl/**/*_test.cc",
27        "absl/**/*_testing.cc",
28        "absl/base/spinlock_test_common.cc",
29        "absl/hash/internal/print_hash_of.cc",
30        "absl/log/internal/test_helpers.cc",
31        "absl/log/internal/test_matchers.cc",
32        "absl/log/scoped_mock_log.cc",
33        "absl/random/internal/gaussian_distribution_gentables.cc",
34        "absl/status/internal/status_matchers.cc",
35    ],
36    export_include_dirs: ["."],
37    shared_libs: [
38        "liblog",
39    ],
40    stl: "libc++",
41    sdk_version: "current",
42    min_sdk_version: "apex_inherit",
43    apex_available: [
44        "//apex_available:platform",
45        "com.android.adservices",
46        "com.android.extservices",
47        "com.android.ondevicepersonalization",
48    ],
49    visibility: [
50        // go/keep-sorted start
51        "//external/anonymous-counting-tokens:__subpackages__",
52        "//external/federated-compute:__subpackages__",
53        "//external/grpc-grpc:__subpackages__",
54        "//external/iamf_tools:__subpackages__",
55        "//external/kythe:__subpackages__",
56        "//external/libtextclassifier:__subpackages__",
57        "//external/private-join-and-compute:__subpackages__",
58        "//external/tensorflow:__subpackages__",
59        "//external/tflite-support:__subpackages__",
60        "//external/webrtc:__subpackages__",
61        "//frameworks/av/media/libeffects/preprocessing",
62        // go/keep-sorted end
63    ],
64}
65
66// Globally visible host-only library.
67cc_library_host_static {
68    name: "libabsl_host",
69    whole_static_libs: ["libabsl"],
70    export_include_dirs: ["."],
71    stl: "libc++",
72}
73