blob: c769e975e3fcc5afd64581fa3256d57232688cad [file] [log] [blame]
Bob Badour3c538232021-02-12 21:26:48 -08001package {
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
Steven Morelandce3267f2017-04-21 13:08:34 -070010cc_library_shared {
11 name: "libsensorservice",
12
13 srcs: [
14 "BatteryService.cpp",
15 "CorrectedGyroSensor.cpp",
16 "Fusion.cpp",
17 "GravitySensor.cpp",
18 "LinearAccelerationSensor.cpp",
19 "OrientationSensor.cpp",
20 "RecentEventLogger.cpp",
21 "RotationVectorSensor.cpp",
22 "SensorDevice.cpp",
Peng Xu1a00e2d2017-09-27 23:08:30 -070023 "SensorDeviceUtils.cpp",
Steven Morelandce3267f2017-04-21 13:08:34 -070024 "SensorDirectConnection.cpp",
25 "SensorEventConnection.cpp",
26 "SensorFusion.cpp",
27 "SensorInterface.cpp",
28 "SensorList.cpp",
29 "SensorRecord.cpp",
30 "SensorService.cpp",
31 "SensorServiceUtils.cpp",
32 ],
33
34 cflags: [
35 "-DLOG_TAG=\"SensorService\"",
36 "-Wall",
37 "-Werror",
38 "-Wextra",
39 "-fvisibility=hidden"
40 ],
41
Anthony Stangee38a1412020-02-13 21:28:37 -050042 header_libs: [
43 "android.hardware.sensors@2.X-shared-utils",
44 ],
45
Steven Morelandce3267f2017-04-21 13:08:34 -070046 shared_libs: [
47 "libcutils",
48 "libhardware",
49 "libhardware_legacy",
50 "libutils",
51 "liblog",
Steven Morelandea6bfab2021-04-01 00:10:31 +000052 "libbatterystats_aidl",
Steven Morelandce3267f2017-04-21 13:08:34 -070053 "libbinder",
54 "libsensor",
Michael Groover5e1f60b2018-12-04 22:34:29 -080055 "libsensorprivacy",
Mike Ma24743862020-01-29 00:36:55 -080056 "libprotoutil",
Steven Morelandce3267f2017-04-21 13:08:34 -070057 "libcrypto",
58 "libbase",
59 "libhidlbase",
Brian Stack979887b2018-09-19 15:27:48 -070060 "libfmq",
Steven Morelandce3267f2017-04-21 13:08:34 -070061 "android.hardware.sensors@1.0",
Brian Stack087ed292018-09-14 15:45:01 -070062 "android.hardware.sensors@2.0",
Anthony Stangee38a1412020-02-13 21:28:37 -050063 "android.hardware.sensors@2.1",
Steven Morelandce3267f2017-04-21 13:08:34 -070064 ],
65
Anthony Stangee38a1412020-02-13 21:28:37 -050066 static_libs: [
67 "android.hardware.sensors@1.0-convert",
68 ],
Steven Morelandce3267f2017-04-21 13:08:34 -070069
Mike Ma24743862020-01-29 00:36:55 -080070 generated_headers: ["framework-cppstream-protos"],
71
Michael Groover5e1f60b2018-12-04 22:34:29 -080072 // our public headers depend on libsensor and libsensorprivacy
73 export_shared_lib_headers: ["libsensor", "libsensorprivacy"],
Steven Morelandce3267f2017-04-21 13:08:34 -070074}
75
76cc_binary {
77 name: "sensorservice",
78
79 srcs: ["main_sensorservice.cpp"],
80
81 shared_libs: [
82 "libsensorservice",
Michael Groover5e1f60b2018-12-04 22:34:29 -080083 "libsensorprivacy",
Steven Morelandce3267f2017-04-21 13:08:34 -070084 "libbinder",
85 "libutils",
86 ],
87
88 cflags: [
89 "-Wall",
90 "-Werror",
91 "-Wextra",
92 ],
93}