# Build the unit tests. LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) test_src_files := \ InputDispatcher_test.cpp LOCAL_SHARED_LIBRARIES := \ libcutils \ libutils \ libEGL \ libbinder \ libpixelflinger \ libhardware \ libhardware_legacy \ libui \ libstlport LOCAL_STATIC_LIBRARIES := \ libgtest \ libgtest_main LOCAL_C_INCLUDES := \ bionic \ bionic/libstdc++/include \ external/gtest/include \ external/stlport/stlport LOCAL_MODULE_TAGS := eng tests $(foreach file,$(test_src_files), \ $(eval LOCAL_SRC_FILES := $(file)) \ $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ $(eval include $(BUILD_EXECUTABLE)) \ ) # Build the manual test programs. include $(call all-subdir-makefiles)