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 libandroidfw \ 13 libutils \ 14 libhardware \ 15 libhardware_legacy \ 16 libui \ 17 libskia \ 18 libstlport \ 19 libinput 20 21 static_libraries := \ 22 libgtest \ 23 libgtest_main 24 25 c_includes := \ 26 bionic \ 27 bionic/libstdc++/include \ 28 external/gtest/include \ 29 external/stlport/stlport \ 30 external/skia/include/core 31 32 module_tags := eng tests 33 34 $(foreach file,$(test_src_files), \ 35 $(eval include $(CLEAR_VARS)) \ 36 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 37 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 38 $(eval LOCAL_C_INCLUDES := $(c_includes)) \ 39 $(eval LOCAL_SRC_FILES := $(file)) \ 40 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ 41 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ 42 $(eval include $(BUILD_EXECUTABLE)) \ 43 ) 44 45 # Build the manual test programs. 46 include $(call all-makefiles-under, $(LOCAL_PATH)) 47