1subdirs = [ 2 "hidl" 3] 4cc_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", 17 "SensorDirectConnection.cpp", 18 "SensorEventConnection.cpp", 19 "SensorFusion.cpp", 20 "SensorInterface.cpp", 21 "SensorList.cpp", 22 "SensorRecord.cpp", 23 "SensorService.cpp", 24 "SensorServiceUtils.cpp", 25 ], 26 27 cflags: [ 28 "-DLOG_TAG=\"SensorService\"", 29 "-Wall", 30 "-Werror", 31 "-Wextra", 32 "-fvisibility=hidden" 33 ], 34 35 shared_libs: [ 36 "libcutils", 37 "libhardware", 38 "libhardware_legacy", 39 "libutils", 40 "liblog", 41 "libbinder", 42 "libsensor", 43 "libcrypto", 44 "libbase", 45 "libhidlbase", 46 "libhidltransport", 47 "libhwbinder", 48 "android.hardware.sensors@1.0", 49 ], 50 51 static_libs: ["android.hardware.sensors@1.0-convert"], 52 53 // our public headers depend on libsensor 54 export_shared_lib_headers: ["libsensor"], 55} 56 57cc_binary { 58 name: "sensorservice", 59 60 srcs: ["main_sensorservice.cpp"], 61 62 shared_libs: [ 63 "libsensorservice", 64 "libbinder", 65 "libutils", 66 ], 67 68 cflags: [ 69 "-Wall", 70 "-Werror", 71 "-Wextra", 72 ], 73} 74