blob: 9aecaff4097cc6392fb547578cc3a2b634a1479f [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 Moreland710ad482021-04-05 23:17:21 +000052 "libactivitymanager_aidl",
Steven Morelandea6bfab2021-04-01 00:10:31 +000053 "libbatterystats_aidl",
Steven Morelandce3267f2017-04-21 13:08:34 -070054 "libbinder",
55 "libsensor",
Michael Groover5e1f60b2018-12-04 22:34:29 -080056 "libsensorprivacy",
Mike Ma24743862020-01-29 00:36:55 -080057 "libprotoutil",
Steven Morelandce3267f2017-04-21 13:08:34 -070058 "libcrypto",
59 "libbase",
60 "libhidlbase",
Brian Stack979887b2018-09-19 15:27:48 -070061 "libfmq",
Steven Morelandce3267f2017-04-21 13:08:34 -070062 "android.hardware.sensors@1.0",
Brian Stack087ed292018-09-14 15:45:01 -070063 "android.hardware.sensors@2.0",
Anthony Stangee38a1412020-02-13 21:28:37 -050064 "android.hardware.sensors@2.1",
Steven Morelandce3267f2017-04-21 13:08:34 -070065 ],
66
Anthony Stangee38a1412020-02-13 21:28:37 -050067 static_libs: [
68 "android.hardware.sensors@1.0-convert",
69 ],
Steven Morelandce3267f2017-04-21 13:08:34 -070070
Mike Ma24743862020-01-29 00:36:55 -080071 generated_headers: ["framework-cppstream-protos"],
72
Steven Moreland710ad482021-04-05 23:17:21 +000073 export_shared_lib_headers: [
74 "libactivitymanager_aidl",
75 "libsensor",
76 "libsensorprivacy",
77 ],
Steven Morelandce3267f2017-04-21 13:08:34 -070078}
79
80cc_binary {
81 name: "sensorservice",
82
83 srcs: ["main_sensorservice.cpp"],
84
85 shared_libs: [
86 "libsensorservice",
Michael Groover5e1f60b2018-12-04 22:34:29 -080087 "libsensorprivacy",
Steven Morelandce3267f2017-04-21 13:08:34 -070088 "libbinder",
89 "libutils",
90 ],
91
92 cflags: [
93 "-Wall",
94 "-Werror",
95 "-Wextra",
96 ],
97}