xref: /aosp_15_r20/external/abseil-cpp/Android.bp (revision 9356374a3709195abf420251b3e825997ff56c0f)
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    srcs: [
20        "absl/**/*.cc",
21    ],
22    exclude_srcs: [
23        "absl/**/*benchmark.cc",
24        "absl/**/*benchmarks.cc",
25        "absl/**/*_test.cc",
26        "absl/**/*_testing.cc",
27        "absl/base/spinlock_test_common.cc",
28        "absl/hash/internal/print_hash_of.cc",
29        "absl/log/internal/test_helpers.cc",
30        "absl/log/internal/test_matchers.cc",
31        "absl/log/scoped_mock_log.cc",
32        "absl/random/internal/gaussian_distribution_gentables.cc",
33        "absl/status/internal/status_matchers.cc",
34    ],
35    export_include_dirs: ["."],
36    shared_libs: [
37        "liblog",
38    ],
39    stl: "libc++",
40    sdk_version: "current",
41    min_sdk_version: "apex_inherit",
42    apex_available: [
43        "//apex_available:platform",
44        "com.android.adservices",
45        "com.android.extservices",
46        "com.android.ondevicepersonalization",
47    ],
48    visibility: [
49        "//external/federated-compute:__subpackages__",
50        "//external/grpc-grpc:__subpackages__",
51        "//external/libtextclassifier:__subpackages__",
52        "//external/kythe:__subpackages__",
53        "//external/tensorflow:__subpackages__",
54        "//external/tflite-support:__subpackages__",
55        "//external/webrtc:__subpackages__",
56        "//frameworks/av/media/libeffects/preprocessing",
57    ],
58}
59
60// Globally visible host-only library.
61cc_library_host_static {
62    name: "libabsl_host",
63    whole_static_libs: ["libabsl"],
64    export_include_dirs: ["."],
65    stl: "libc++",
66}
67