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 "SensorDeviceUtils.cpp", 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 "libsensorprivacy", 45 "libcrypto", 46 "libbase", 47 "libhidlbase", 48 "libhidltransport", 49 "libhwbinder", 50 "libfmq", 51 "android.hardware.sensors@1.0", 52 "android.hardware.sensors@2.0", 53 ], 54 55 static_libs: ["android.hardware.sensors@1.0-convert"], 56 57 // our public headers depend on libsensor and libsensorprivacy 58 export_shared_lib_headers: ["libsensor", "libsensorprivacy"], 59} 60 61cc_binary { 62 name: "sensorservice", 63 64 srcs: ["main_sensorservice.cpp"], 65 66 shared_libs: [ 67 "libsensorservice", 68 "libsensorprivacy", 69 "libbinder", 70 "libutils", 71 ], 72 73 cflags: [ 74 "-Wall", 75 "-Werror", 76 "-Wextra", 77 ], 78} 79