blob: 5246c788662631e8a5c6c91082d6c040e9b3c974 [file] [log] [blame]
Yifan Hongc34f57f2017-03-10 14:12:00 -08001subdirs = [
2 "hidl"
3]
Steven Morelandce3267f2017-04-21 13:08:34 -07004cc_library_shared {
5 name: "libsensorservice",
6
7 srcs: [
8 "BatteryService.cpp",
9 "CorrectedGyroSensor.cpp",
10 "Fusion.cpp",
11 "GravitySensor.cpp",
12 "LinearAccelerationSensor.cpp",
13 "OrientationSensor.cpp",
14 "RecentEventLogger.cpp",
15 "RotationVectorSensor.cpp",
16 "SensorDevice.cpp",
Peng Xu1a00e2d2017-09-27 23:08:30 -070017 "SensorDeviceUtils.cpp",
Steven Morelandce3267f2017-04-21 13:08:34 -070018 "SensorDirectConnection.cpp",
19 "SensorEventConnection.cpp",
20 "SensorFusion.cpp",
21 "SensorInterface.cpp",
22 "SensorList.cpp",
23 "SensorRecord.cpp",
24 "SensorService.cpp",
25 "SensorServiceUtils.cpp",
26 ],
27
28 cflags: [
29 "-DLOG_TAG=\"SensorService\"",
30 "-Wall",
31 "-Werror",
32 "-Wextra",
33 "-fvisibility=hidden"
34 ],
35
36 shared_libs: [
37 "libcutils",
38 "libhardware",
39 "libhardware_legacy",
40 "libutils",
41 "liblog",
42 "libbinder",
43 "libsensor",
Michael Groover5e1f60b2018-12-04 22:34:29 -080044 "libsensorprivacy",
Mike Ma24743862020-01-29 00:36:55 -080045 "libprotoutil",
Steven Morelandce3267f2017-04-21 13:08:34 -070046 "libcrypto",
47 "libbase",
48 "libhidlbase",
Brian Stack979887b2018-09-19 15:27:48 -070049 "libfmq",
Steven Morelandce3267f2017-04-21 13:08:34 -070050 "android.hardware.sensors@1.0",
Brian Stack087ed292018-09-14 15:45:01 -070051 "android.hardware.sensors@2.0",
Steven Morelandce3267f2017-04-21 13:08:34 -070052 ],
53
54 static_libs: ["android.hardware.sensors@1.0-convert"],
55
Mike Ma24743862020-01-29 00:36:55 -080056 generated_headers: ["framework-cppstream-protos"],
57
Michael Groover5e1f60b2018-12-04 22:34:29 -080058 // our public headers depend on libsensor and libsensorprivacy
59 export_shared_lib_headers: ["libsensor", "libsensorprivacy"],
Steven Morelandce3267f2017-04-21 13:08:34 -070060}
61
62cc_binary {
63 name: "sensorservice",
64
65 srcs: ["main_sensorservice.cpp"],
66
67 shared_libs: [
68 "libsensorservice",
Michael Groover5e1f60b2018-12-04 22:34:29 -080069 "libsensorprivacy",
Steven Morelandce3267f2017-04-21 13:08:34 -070070 "libbinder",
71 "libutils",
72 ],
73
74 cflags: [
75 "-Wall",
76 "-Werror",
77 "-Wextra",
78 ],
79}