1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_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 17 LOCAL_CFLAGS:= -DLOG_TAG=\"SensorService\" 18 19 LOCAL_CFLAGS += -fvisibility=hidden 20 21 LOCAL_SHARED_LIBRARIES := \ 22 libcutils \ 23 libhardware \ 24 libhardware_legacy \ 25 libutils \ 26 liblog \ 27 libbinder \ 28 libui \ 29 libgui 30 31 LOCAL_MODULE:= libsensorservice 32 33 include $(BUILD_SHARED_LIBRARY) 34 35 ##################################################################### 36 # build executable 37 include $(CLEAR_VARS) 38 39 LOCAL_SRC_FILES:= \ 40 main_sensorservice.cpp 41 42 LOCAL_SHARED_LIBRARIES := \ 43 libsensorservice \ 44 libbinder \ 45 libutils 46 47 LOCAL_MODULE_TAGS := optional 48 49 LOCAL_MODULE:= sensorservice 50 51 include $(BUILD_EXECUTABLE) 52