Android.mk 913 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. LOCAL_PATH := $(call my-dir)
  2. common_src_files := commands.cpp utils.cpp
  3. common_cflags := -Wall -Werror
  4. #
  5. # Static library used in testing and executable
  6. #
  7. include $(CLEAR_VARS)
  8. LOCAL_MODULE := libinstalld
  9. LOCAL_MODULE_TAGS := eng tests
  10. LOCAL_SRC_FILES := $(common_src_files)
  11. LOCAL_CFLAGS := $(common_cflags)
  12. LOCAL_SHARED_LIBRARIES := \
  13. libbase \
  14. liblogwrap \
  15. LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
  16. LOCAL_CLANG := true
  17. include $(BUILD_STATIC_LIBRARY)
  18. #
  19. # Executable
  20. #
  21. include $(CLEAR_VARS)
  22. LOCAL_MODULE := installd
  23. LOCAL_MODULE_TAGS := optional
  24. LOCAL_CFLAGS := $(common_cflags)
  25. LOCAL_SRC_FILES := installd.cpp $(common_src_files)
  26. LOCAL_SHARED_LIBRARIES := \
  27. libbase \
  28. libcutils \
  29. liblog \
  30. liblogwrap \
  31. libselinux \
  32. LOCAL_STATIC_LIBRARIES := libdiskusage
  33. LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk
  34. LOCAL_CLANG := true
  35. include $(BUILD_EXECUTABLE)