blob: ca9ff7c8c37ffb7674e86b66c1e60b4923f4dcee [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
Yifan Hongc34f57f2017-03-10 14:12:00 -080010subdirs = [
11 "hidl"
12]
Steven Morelandce3267f2017-04-21 13:08:34 -070013cc_library_shared {
14 name: "libsensorservice",
15
16 srcs: [
17 "BatteryService.cpp",
18 "CorrectedGyroSensor.cpp",
19 "Fusion.cpp",
20 "GravitySensor.cpp",
21 "LinearAccelerationSensor.cpp",
22 "OrientationSensor.cpp",
23 "RecentEventLogger.cpp",
24 "RotationVectorSensor.cpp",
25 "SensorDevice.cpp",
Peng Xu1a00e2d2017-09-27 23:08:30 -070026 "SensorDeviceUtils.cpp",
Steven Morelandce3267f2017-04-21 13:08:34 -070027 "SensorDirectConnection.cpp",
28 "SensorEventConnection.cpp",
29 "SensorFusion.cpp",
30 "SensorInterface.cpp",
31 "SensorList.cpp",
32 "SensorRecord.cpp",
33 "SensorService.cpp",
34 "SensorServiceUtils.cpp",
35 ],
36
37 cflags: [
38 "-DLOG_TAG=\"SensorService\"",
39 "-Wall",
40 "-Werror",
41 "-Wextra",
42 "-fvisibility=hidden"
43 ],
44
Anthony Stangee38a1412020-02-13 21:28:37 -050045 header_libs: [
46 "android.hardware.sensors@2.X-shared-utils",
47 ],
48
Steven Morelandce3267f2017-04-21 13:08:34 -070049 shared_libs: [
50 "libcutils",
51 "libhardware",
52 "libhardware_legacy",
53 "libutils",
54 "liblog",
55 "libbinder",
56 "libsensor",
Michael Groover5e1f60b2018-12-04 22:34:29 -080057 "libsensorprivacy",
Mike Ma24743862020-01-29 00:36:55 -080058 "libprotoutil",
Steven Morelandce3267f2017-04-21 13:08:34 -070059 "libcrypto",
60 "libbase",
61 "libhidlbase",
Brian Stack979887b2018-09-19 15:27:48 -070062 "libfmq",
Steven Morelandce3267f2017-04-21 13:08:34 -070063 "android.hardware.sensors@1.0",
Brian Stack087ed292018-09-14 15:45:01 -070064 "android.hardware.sensors@2.0",
Anthony Stangee38a1412020-02-13 21:28:37 -050065 "android.hardware.sensors@2.1",
Steven Morelandce3267f2017-04-21 13:08:34 -070066 ],
67
Anthony Stangee38a1412020-02-13 21:28:37 -050068 static_libs: [
69 "android.hardware.sensors@1.0-convert",
70 ],
Steven Morelandce3267f2017-04-21 13:08:34 -070071
Mike Ma24743862020-01-29 00:36:55 -080072 generated_headers: ["framework-cppstream-protos"],
73
Michael Groover5e1f60b2018-12-04 22:34:29 -080074 // our public headers depend on libsensor and libsensorprivacy
75 export_shared_lib_headers: ["libsensor", "libsensorprivacy"],
Steven Morelandce3267f2017-04-21 13:08:34 -070076}
77
78cc_binary {
79 name: "sensorservice",
80
81 srcs: ["main_sensorservice.cpp"],
82
83 shared_libs: [
84 "libsensorservice",
Michael Groover5e1f60b2018-12-04 22:34:29 -080085 "libsensorprivacy",
Steven Morelandce3267f2017-04-21 13:08:34 -070086 "libbinder",
87 "libutils",
88 ],
89
90 cflags: [
91 "-Wall",
92 "-Werror",
93 "-Wextra",
94 ],
95}