blob: cc92bc30a09347740578e52c2473dbf474daea04 [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",
27 srcs: ["libsensor_flags.aconfig"],
28}
29
30cc_aconfig_library {
31 name: "libsensor_flags_c_lib",
32 host_supported: true,
33 aconfig_declarations: "libsensor_flags",
34}
35
Devin Mooreca9c28d2022-11-14 19:28:15 +000036cc_library {
Mathias Agopian801ea092017-03-06 15:05:04 -080037 name: "libsensor",
38
Devin Mooreca9c28d2022-11-14 19:28:15 +000039 host_supported: true,
Chih-Hung Hsiehb7b8b3d2017-10-05 14:26:36 -070040 cflags: [
41 "-Wall",
42 "-Werror",
43 ],
Mathias Agopian801ea092017-03-06 15:05:04 -080044 cppflags: [
Colin Cross1383d9f2019-11-06 13:33:40 -080045 "-Wextra",
Mathias Agopian801ea092017-03-06 15:05:04 -080046 ],
47
48 srcs: [
49 "BitTube.cpp",
50 "ISensorEventConnection.cpp",
51 "ISensorServer.cpp",
52 "Sensor.cpp",
53 "SensorEventQueue.cpp",
54 "SensorManager.cpp",
55 ],
56
57 shared_libs: [
58 "libbinder",
59 "libcutils",
60 "libutils",
61 "liblog",
62 "libhardware",
Steven Moreland7c849fa2021-04-13 01:01:32 +000063 "libpermission",
Vladimir Komsiyskif1d48af2023-10-06 10:11:44 +020064 "android.companion.virtual.virtualdevice_aidl-cpp",
Mathias Agopian801ea092017-03-06 15:05:04 -080065 ],
66
Shai Barack9b534db2024-01-25 00:16:03 +000067 static_libs: [
68 "libsensor_flags_c_lib",
69 ],
70
Mathias Agopian801ea092017-03-06 15:05:04 -080071 export_include_dirs: ["include"],
72
Alixfcd57762022-04-25 20:14:50 +000073 export_shared_lib_headers: [
74 "libbinder",
75 "libpermission",
76 "libhardware",
77 ],
Mathias Agopian801ea092017-03-06 15:05:04 -080078}