Devin Moore | 0b59781 | 2022-11-04 20:43:35 +0000 | [diff] [blame] | 1 | package { |
| 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 | |
Devin Moore | ca9c28d | 2022-11-14 19:28:15 +0000 | [diff] [blame] | 10 | cc_library { |
Devin Moore | 0b59781 | 2022-11-04 20:43:35 +0000 | [diff] [blame] | 11 | name: "libsensorserviceaidl", |
| 12 | srcs: [ |
| 13 | "EventQueue.cpp", |
| 14 | "DirectReportChannel.cpp", |
| 15 | "SensorManager.cpp", |
| 16 | "utils.cpp", |
| 17 | ], |
Devin Moore | ca9c28d | 2022-11-14 19:28:15 +0000 | [diff] [blame] | 18 | host_supported: true, |
Devin Moore | 0b59781 | 2022-11-04 20:43:35 +0000 | [diff] [blame] | 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", |
Vladimir Komsiyski | 29d2afd | 2022-12-06 13:24:10 +0100 | [diff] [blame^] | 31 | "android.hardware.sensors-V2-ndk", |
Devin Moore | 0b59781 | 2022-11-04 20:43:35 +0000 | [diff] [blame] | 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 | } |