Android.mk 946 B

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