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