1# Build the unit tests. 2LOCAL_PATH := $(call my-dir) 3include $(CLEAR_VARS) 4 5test_src_files := \ 6 VolumeManager_test.cpp 7 8shared_libraries := \ 9 liblog \ 10 libstlport \ 11 libcrypto 12 13static_libraries := \ 14 libvold \ 15 libgtest \ 16 libgtest_main 17 18c_includes := \ 19 external/openssl/include \ 20 bionic \ 21 bionic/libstdc++/include \ 22 external/gtest/include \ 23 external/stlport/stlport 24 25module_tags := eng tests 26 27$(foreach file,$(test_src_files), \ 28 $(eval include $(CLEAR_VARS)) \ 29 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 30 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 31 $(eval LOCAL_C_INCLUDES := $(c_includes)) \ 32 $(eval LOCAL_SRC_FILES := $(file)) \ 33 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ 34 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ 35 $(eval include $(BUILD_EXECUTABLE)) \ 36) 37