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_libhardware_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_libhardware_license"],
8}
9
10cc_library_static {
11    name: "multihal",
12    vendor: true,
13    srcs: [
14        "multihal.cpp",
15        "SensorEventQueue.cpp",
16    ],
17    header_libs: [
18        "libhardware_headers",
19    ],
20    shared_libs: [
21        "liblog",
22        "libcutils",
23        "libutils",
24        "libdl",
25    ],
26    export_include_dirs: ["."],
27    cflags: [
28        "-Wall",
29        "-Werror",
30    ],
31}
32
33cc_test_host {
34    name: "sensorstests",
35    gtest: false,
36    srcs: [
37        "SensorEventQueue.cpp",
38        "tests/SensorEventQueue_test.cpp",
39    ],
40    static_libs: [
41        "libcutils",
42        "libutils",
43    ],
44    cflags: [
45        "-Wall",
46        "-Werror",
47    ],
48}
49