Yifan Hong | c34f57f | 2017-03-10 14:12:00 -0800 | [diff] [blame] | 1 | subdirs = [ |
| 2 | "hidl" |
| 3 | ] |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 4 | cc_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 Xu | 1a00e2d | 2017-09-27 23:08:30 -0700 | [diff] [blame] | 17 | "SensorDeviceUtils.cpp", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 18 | "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 | |
Anthony Stange | e38a141 | 2020-02-13 21:28:37 -0500 | [diff] [blame] | 36 | header_libs: [ |
| 37 | "android.hardware.sensors@2.X-shared-utils", |
| 38 | ], |
| 39 | |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 40 | shared_libs: [ |
| 41 | "libcutils", |
| 42 | "libhardware", |
| 43 | "libhardware_legacy", |
| 44 | "libutils", |
| 45 | "liblog", |
| 46 | "libbinder", |
| 47 | "libsensor", |
Michael Groover | 5e1f60b | 2018-12-04 22:34:29 -0800 | [diff] [blame] | 48 | "libsensorprivacy", |
Mike Ma | 2474386 | 2020-01-29 00:36:55 -0800 | [diff] [blame] | 49 | "libprotoutil", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 50 | "libcrypto", |
| 51 | "libbase", |
| 52 | "libhidlbase", |
Brian Stack | 979887b | 2018-09-19 15:27:48 -0700 | [diff] [blame] | 53 | "libfmq", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 54 | "android.hardware.sensors@1.0", |
Brian Stack | 087ed29 | 2018-09-14 15:45:01 -0700 | [diff] [blame] | 55 | "android.hardware.sensors@2.0", |
Anthony Stange | e38a141 | 2020-02-13 21:28:37 -0500 | [diff] [blame] | 56 | "android.hardware.sensors@2.1", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 57 | ], |
| 58 | |
Anthony Stange | e38a141 | 2020-02-13 21:28:37 -0500 | [diff] [blame] | 59 | static_libs: [ |
| 60 | "android.hardware.sensors@1.0-convert", |
| 61 | ], |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 62 | |
Mike Ma | 2474386 | 2020-01-29 00:36:55 -0800 | [diff] [blame] | 63 | generated_headers: ["framework-cppstream-protos"], |
| 64 | |
Michael Groover | 5e1f60b | 2018-12-04 22:34:29 -0800 | [diff] [blame] | 65 | // our public headers depend on libsensor and libsensorprivacy |
| 66 | export_shared_lib_headers: ["libsensor", "libsensorprivacy"], |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | cc_binary { |
| 70 | name: "sensorservice", |
| 71 | |
| 72 | srcs: ["main_sensorservice.cpp"], |
| 73 | |
| 74 | shared_libs: [ |
| 75 | "libsensorservice", |
Michael Groover | 5e1f60b | 2018-12-04 22:34:29 -0800 | [diff] [blame] | 76 | "libsensorprivacy", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 77 | "libbinder", |
| 78 | "libutils", |
| 79 | ], |
| 80 | |
| 81 | cflags: [ |
| 82 | "-Wall", |
| 83 | "-Werror", |
| 84 | "-Wextra", |
| 85 | ], |
| 86 | } |