1 # Build the unit tests. 2 LOCAL_PATH:= $(call my-dir) 3 include $(CLEAR_VARS) 4 5 test_src_files := \ 6 mimeUri_test.cpp \ 7 8 shared_libraries := \ 9 libutils \ 10 libOpenSLES \ 11 libstlport 12 13 static_libraries := \ 14 libgtest \ 15 libgtest_main 16 17 c_includes := \ 18 bionic \ 19 bionic/libstdc++/include \ 20 external/gtest/include \ 21 $(call include-path-for, wilhelm) \ 22 external/stlport/stlport 23 24 module_tags := tests 25 26 $(foreach file,$(test_src_files), \ 27 $(eval include $(CLEAR_VARS)) \ 28 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 29 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 30 $(eval LOCAL_C_INCLUDES := $(c_includes)) \ 31 $(eval LOCAL_SRC_FILES := $(file)) \ 32 $(eval LOCAL_MODULE := libopenslestests) \ 33 $(eval LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/nativetest) \ 34 $(eval LOCAL_MODULE_TAGS := $(module_tags)) \ 35 $(eval include $(BUILD_EXECUTABLE)) \ 36 ) 37 38 # Build the manual test programs. 39 include $(call all-makefiles-under,$(LOCAL_PATH)) 40