1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_SRC_FILES:= \ 5 BatteryService.cpp \ 6 CorrectedGyroSensor.cpp \ 7 Fusion.cpp \ 8 GravitySensor.cpp \ 9 LinearAccelerationSensor.cpp \ 10 OrientationSensor.cpp \ 11 RotationVectorSensor.cpp \ 12 SensorDevice.cpp \ 13 SensorFusion.cpp \ 14 SensorInterface.cpp \ 15 SensorService.cpp 16 17LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\" 18 19LOCAL_CFLAGS += -fvisibility=hidden 20 21LOCAL_SHARED_LIBRARIES := \ 22 libcutils \ 23 libhardware \ 24 libhardware_legacy \ 25 libutils \ 26 liblog \ 27 libbinder \ 28 libui \ 29 libgui 30 31LOCAL_MODULE:= libsensorservice 32 33include $(BUILD_SHARED_LIBRARY) 34 35##################################################################### 36# build executable 37include $(CLEAR_VARS) 38 39LOCAL_SRC_FILES:= \ 40 main_sensorservice.cpp 41 42LOCAL_SHARED_LIBRARIES := \ 43 libsensorservice \ 44 libbinder \ 45 libutils 46 47LOCAL_MODULE_TAGS := optional 48 49LOCAL_MODULE:= sensorservice 50 51include $(BUILD_EXECUTABLE) 52