Android.mk 950 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Build the unit tests.
  2. LOCAL_PATH:= $(call my-dir)
  3. include $(CLEAR_VARS)
  4. # Build the unit tests.
  5. test_src_files := \
  6. InputReader_test.cpp \
  7. InputDispatcher_test.cpp
  8. shared_libraries := \
  9. libcutils \
  10. liblog \
  11. libutils \
  12. libhardware \
  13. libhardware_legacy \
  14. libui \
  15. libskia \
  16. libinput \
  17. libinputflinger \
  18. libinputservice
  19. c_includes := \
  20. external/skia/include/core
  21. module_tags := tests
  22. $(foreach file,$(test_src_files), \
  23. $(eval include $(CLEAR_VARS)) \
  24. $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
  25. $(eval LOCAL_C_INCLUDES := $(c_includes)) \
  26. $(eval LOCAL_CFLAGS += -Wno-unused-parameter) \
  27. $(eval LOCAL_SRC_FILES := $(file)) \
  28. $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
  29. $(eval LOCAL_MODULE_TAGS := $(module_tags)) \
  30. $(eval include $(BUILD_NATIVE_TEST)) \
  31. )
  32. # Build the manual test programs.
  33. include $(call all-makefiles-under, $(LOCAL_PATH))