blob: 659666d6b60bc1438e4b789a9dd49739fe1ebad3 [file] [log] [blame]
Mathias Agopian801ea092017-03-06 15:05:04 -08001// 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 Badour3c538232021-02-12 21:26:48 -080015package {
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 Barack9b534db2024-01-25 00:16:03 +000024aconfig_declarations {
25 name: "libsensor_flags",
26 package: "com.android.hardware.libsensor.flags",
Yu Liu40669112024-03-26 22:25:47 +000027 container: "system",
Shai Barack9b534db2024-01-25 00:16:03 +000028 srcs: ["libsensor_flags.aconfig"],
29}
30
31cc_aconfig_library {
32 name: "libsensor_flags_c_lib",
33 host_supported: true,
34 aconfig_declarations: "libsensor_flags",
35}
36
Devin Mooreca9c28d2022-11-14 19:28:15 +000037cc_library {
Mathias Agopian801ea092017-03-06 15:05:04 -080038 name: "libsensor",
39
Devin Mooreca9c28d2022-11-14 19:28:15 +000040 host_supported: true,
Chih-Hung Hsiehb7b8b3d2017-10-05 14:26:36 -070041 cflags: [
42 "-Wall",
43 "-Werror",
44 ],
Mathias Agopian801ea092017-03-06 15:05:04 -080045 cppflags: [
Colin Cross1383d9f2019-11-06 13:33:40 -080046 "-Wextra",
Mathias Agopian801ea092017-03-06 15:05:04 -080047 ],
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 Moreland7c849fa2021-04-13 01:01:32 +000064 "libpermission",
Vladimir Komsiyskif1d48af2023-10-06 10:11:44 +020065 "android.companion.virtual.virtualdevice_aidl-cpp",
Rocky Fang71df3972024-06-04 17:49:33 +000066 "libaconfig_storage_read_api_cc",
67 "server_configurable_flags",
Mathias Agopian801ea092017-03-06 15:05:04 -080068 ],
69
Shai Barack9b534db2024-01-25 00:16:03 +000070 static_libs: [
71 "libsensor_flags_c_lib",
72 ],
73
Mathias Agopian801ea092017-03-06 15:05:04 -080074 export_include_dirs: ["include"],
75
Alixfcd57762022-04-25 20:14:50 +000076 export_shared_lib_headers: [
77 "libbinder",
78 "libpermission",
79 "libhardware",
80 ],
Mathias Agopian801ea092017-03-06 15:05:04 -080081}