aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: e6ca9e0f553222dcc4904f9b100006a8b1f76c6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package {
    default_applicable_licenses: ["libabsl_license"],
}

license {
    name: "libabsl_license",
    visibility: [":__subpackages__"],
    license_kinds: ["SPDX-license-identifier-Apache-2.0"],
    license_text: ["LICENSE"],
}

// Monolithic module for use on device. Currently restricted to 3P libraries
// which require it as a dependency. See go/absl-android for more information.
cc_library_static {
    name: "libabsl",
    host_supported: true,
    vendor_available: true,
    srcs: [
        "absl/**/*.cc",
    ],
    exclude_srcs: [
        "absl/**/*benchmark.cc",
        "absl/**/*benchmarks.cc",
        "absl/**/*_test.cc",
        "absl/**/*_testing.cc",
        "absl/base/spinlock_test_common.cc",
        "absl/hash/internal/print_hash_of.cc",
        "absl/log/internal/test_helpers.cc",
        "absl/log/internal/test_matchers.cc",
        "absl/log/scoped_mock_log.cc",
        "absl/random/internal/gaussian_distribution_gentables.cc",
    ],
    export_include_dirs: ["."],
    shared_libs: [
        "liblog",
    ],
    stl: "libc++",
    apex_available: [
        "//apex_available:platform",
    ],
    visibility: [
        "//external/grpc-grpc:__subpackages__",
        "//external/kythe:__subpackages__",
    ],
}

// Globally visible host-only library.
cc_library_host_static {
    name: "libabsl_host",
    whole_static_libs: ["libabsl"],
    export_include_dirs: ["."],
    stl: "libc++",
}