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 | |
| 36 | shared_libs: [ |
| 37 | "libcutils", |
| 38 | "libhardware", |
| 39 | "libhardware_legacy", |
| 40 | "libutils", |
| 41 | "liblog", |
| 42 | "libbinder", |
| 43 | "libsensor", |
| 44 | "libcrypto", |
| 45 | "libbase", |
| 46 | "libhidlbase", |
| 47 | "libhidltransport", |
| 48 | "libhwbinder", |
Brian Stack | 979887b | 2018-09-19 15:27:48 -0700 | [diff] [blame] | 49 | "libfmq", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 50 | "android.hardware.sensors@1.0", |
Brian Stack | 087ed29 | 2018-09-14 15:45:01 -0700 | [diff] [blame] | 51 | "android.hardware.sensors@2.0", |
Steven Moreland | ce3267f | 2017-04-21 13:08:34 -0700 | [diff] [blame] | 52 | ], |
| 53 | |
| 54 | static_libs: ["android.hardware.sensors@1.0-convert"], |
| 55 | |
| 56 | // our public headers depend on libsensor |
| 57 | export_shared_lib_headers: ["libsensor"], |
| 58 | } |
| 59 | |
| 60 | cc_binary { |
| 61 | name: "sensorservice", |
| 62 | |
| 63 | srcs: ["main_sensorservice.cpp"], |
| 64 | |
| 65 | shared_libs: [ |
| 66 | "libsensorservice", |
| 67 | "libbinder", |
| 68 | "libutils", |
| 69 | ], |
| 70 | |
| 71 | cflags: [ |
| 72 | "-Wall", |
| 73 | "-Werror", |
| 74 | "-Wextra", |
| 75 | ], |
| 76 | } |