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