xref: /aosp_15_r20/frameworks/native/services/sensorservice/aidl/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
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 "frameworks_native_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_native_license"],
8}
9
10cc_library {
11    name: "libsensorserviceaidl",
12    srcs: [
13        "EventQueue.cpp",
14        "DirectReportChannel.cpp",
15        "SensorManager.cpp",
16        "utils.cpp",
17    ],
18    host_supported: true,
19    cflags: [
20        "-Wall",
21        "-Werror",
22    ],
23    header_libs: ["jni_headers"],
24    shared_libs: [
25        "libbase",
26        "libutils",
27        "libcutils",
28        "libbinder_ndk",
29        "libsensor",
30        "android.frameworks.sensorservice-V1-ndk",
31        "android.hardware.sensors-V3-ndk",
32    ],
33    export_include_dirs: [
34        "include/",
35    ],
36    static_libs: [
37        "android.hardware.sensors-V1-convert",
38    ],
39
40    export_header_lib_headers: ["jni_headers"],
41    local_include_dirs: [
42        "include/sensorserviceaidl/",
43    ],
44}
45