Android.mk revision 5321b3665e1a538cdcf894dea99d15c10b18ccf8
1# Build the unit tests. 2LOCAL_PATH:= $(call my-dir) 3include $(CLEAR_VARS) 4 5test_src_files := \ 6 mimeUri_test.cpp \ 7 8shared_libraries := \ 9 libutils \ 10 libOpenSLES \ 11 libstlport 12 13static_libraries := \ 14 libgtest \ 15 libgtest_main 16 17c_includes := \ 18 bionic \ 19 bionic/libstdc++/include \ 20 external/gtest/include \ 21 $(call include-path-for, wilhelm) \ 22 external/stlport/stlport 23 24module_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. 39include $(call all-makefiles-under,$(LOCAL_PATH)) 40