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: "android.hardware.sensors@1.0-impl",
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        "android.hardware.sensors@1.0",
24    ],
25    static_libs: [
26        "android.hardware.sensors@1.0-convert",
27        "multihal",
28    ],
29    local_include_dirs: ["include/sensors"],
30}
31
32cc_library_static {
33    name: "android.hardware.sensors@1.0-convert",
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        "android.hardware.sensors@1.0",
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: "android.hardware.sensors@1.0-service",
61    relative_install_path: "hw",
62    vendor: true,
63    init_rc: ["android.hardware.sensors@1.0-service.rc"],
64    srcs: ["service.cpp"],
65
66    shared_libs: [
67        "liblog",
68        "libcutils",
69        "libdl",
70        "libbase",
71        "libutils",
72        "libhidlbase",
73        "android.hardware.sensors@1.0",
74    ],
75}
76