Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 1 | // Copyright 2010 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "frameworks_native_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["frameworks_native_license"], |
| 22 | } |
| 23 | |
Shai Barack | 9b534db | 2024-01-25 00:16:03 +0000 | [diff] [blame] | 24 | aconfig_declarations { |
| 25 | name: "libsensor_flags", |
| 26 | package: "com.android.hardware.libsensor.flags", |
Yu Liu | 4066911 | 2024-03-26 22:25:47 +0000 | [diff] [blame] | 27 | container: "system", |
Shai Barack | 9b534db | 2024-01-25 00:16:03 +0000 | [diff] [blame] | 28 | srcs: ["libsensor_flags.aconfig"], |
| 29 | } |
| 30 | |
| 31 | cc_aconfig_library { |
| 32 | name: "libsensor_flags_c_lib", |
| 33 | host_supported: true, |
| 34 | aconfig_declarations: "libsensor_flags", |
| 35 | } |
| 36 | |
Devin Moore | ca9c28d | 2022-11-14 19:28:15 +0000 | [diff] [blame] | 37 | cc_library { |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 38 | name: "libsensor", |
| 39 | |
Devin Moore | ca9c28d | 2022-11-14 19:28:15 +0000 | [diff] [blame] | 40 | host_supported: true, |
Chih-Hung Hsieh | b7b8b3d | 2017-10-05 14:26:36 -0700 | [diff] [blame] | 41 | cflags: [ |
| 42 | "-Wall", |
| 43 | "-Werror", |
| 44 | ], |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 45 | cppflags: [ |
Colin Cross | 1383d9f | 2019-11-06 13:33:40 -0800 | [diff] [blame] | 46 | "-Wextra", |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 47 | ], |
| 48 | |
| 49 | srcs: [ |
| 50 | "BitTube.cpp", |
| 51 | "ISensorEventConnection.cpp", |
| 52 | "ISensorServer.cpp", |
| 53 | "Sensor.cpp", |
| 54 | "SensorEventQueue.cpp", |
| 55 | "SensorManager.cpp", |
| 56 | ], |
| 57 | |
| 58 | shared_libs: [ |
| 59 | "libbinder", |
| 60 | "libcutils", |
| 61 | "libutils", |
| 62 | "liblog", |
| 63 | "libhardware", |
Steven Moreland | 7c849fa | 2021-04-13 01:01:32 +0000 | [diff] [blame] | 64 | "libpermission", |
Vladimir Komsiyski | f1d48af | 2023-10-06 10:11:44 +0200 | [diff] [blame] | 65 | "android.companion.virtual.virtualdevice_aidl-cpp", |
Rocky Fang | 71df397 | 2024-06-04 17:49:33 +0000 | [diff] [blame] | 66 | "libaconfig_storage_read_api_cc", |
| 67 | "server_configurable_flags", |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 68 | ], |
| 69 | |
Shai Barack | 9b534db | 2024-01-25 00:16:03 +0000 | [diff] [blame] | 70 | static_libs: [ |
| 71 | "libsensor_flags_c_lib", |
| 72 | ], |
| 73 | |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 74 | export_include_dirs: ["include"], |
| 75 | |
Alix | fcd5776 | 2022-04-25 20:14:50 +0000 | [diff] [blame] | 76 | export_shared_lib_headers: [ |
| 77 | "libbinder", |
| 78 | "libpermission", |
| 79 | "libhardware", |
| 80 | ], |
Mathias Agopian | 801ea09 | 2017-03-06 15:05:04 -0800 | [diff] [blame] | 81 | } |