xref: /aosp_15_r20/hardware/interfaces/sensors/1.0/default/Android.bp (revision 4d7e907c777eeecc4c5bd7cf640a754fac206ff7)
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_interfaces_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_interfaces_license"],
8}
9
10cc_library_shared {
11    name: "[email protected]",
12    defaults: ["hidl_defaults"],
13    proprietary: true,
14    relative_install_path: "hw",
15    srcs: ["Sensors.cpp"],
16    shared_libs: [
17        "liblog",
18        "libcutils",
19        "libhardware",
20        "libbase",
21        "libutils",
22        "libhidlbase",
23        "[email protected]",
24    ],
25    static_libs: [
26        "[email protected]",
27        "multihal",
28    ],
29    local_include_dirs: ["include/sensors"],
30}
31
32cc_library_static {
33    name: "[email protected]",
34    vendor_available: true,
35    defaults: ["hidl_defaults"],
36    srcs: ["convert.cpp"],
37    export_include_dirs: ["include"],
38    shared_libs: [
39        "liblog",
40        "libcutils",
41        "libhardware",
42        "libbase",
43        "libutils",
44        "libhidlbase",
45        "[email protected]",
46    ],
47    whole_static_libs: [
48        "sensors_common_convert",
49    ],
50    export_static_lib_headers: [
51        "sensors_common_convert",
52    ],
53    local_include_dirs: ["include/sensors"],
54    export_shared_lib_headers: [
55        "libhardware",
56    ],
57}
58
59cc_binary {
60    name: "[email protected]",
61    relative_install_path: "hw",
62    vendor: true,
63    init_rc: ["[email protected]"],
64    srcs: ["service.cpp"],
65
66    shared_libs: [
67        "liblog",
68        "libcutils",
69        "libdl",
70        "libbase",
71        "libutils",
72        "libhidlbase",
73        "[email protected]",
74    ],
75}
76