1// Lazy loading version of libstatspull that can be used by code
2// that is running before the statsd APEX is mounted and
3// libstatspull.so is available.
4package {
5    default_applicable_licenses: ["Android-Apache-2.0"],
6}
7
8cc_library_static {
9    name: "libstatspull_lazy",
10    header_libs: [
11        "libstatspull_headers",
12        "libstatssocket_headers",
13    ],
14    export_header_lib_headers: [
15        "libstatspull_headers",
16    ],
17    apex_available: ["//apex_available:platform"],
18    srcs: ["libstatspull_lazy.cpp"],
19}
20
21cc_test {
22    name: "libstatspull_lazy_test",
23    srcs: [
24        "tests/libstatspull_lazy_test.cpp",
25    ],
26    static_libs: [
27        "libstatspull_lazy",
28        "libstatssocket_lazy",
29    ],
30    shared_libs: ["liblog"],
31    cflags: [
32        "-Wall",
33        "-Werror",
34    ],
35    test_suites: ["device-tests", "mts-statsd"],
36    test_config: "libstatspull_lazy_test.xml",
37    // TODO(b/153588990): Remove when the build system properly separates.
38    // 32bit and 64bit architectures.
39    compile_multilib: "both",
40    multilib: {
41        lib64: {
42            suffix: "64",
43        },
44        lib32: {
45            suffix: "32",
46        },
47    },
48}
49