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 ObbFile_test.cpp \ 8 ZipFileRO_test.cpp 9 10 shared_libraries := \ 11 libandroidfw \ 12 libcutils \ 13 libutils \ 14 libui \ 15 libstlport 16 17 static_libraries := \ 18 libgtest \ 19 libgtest_main 20 21 $(foreach file,$(test_src_files), \ 22 $(eval include $(CLEAR_VARS)) \ 23 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 24 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 25 $(eval LOCAL_SRC_FILES := $(file)) \ 26 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ 27 $(eval include $(BUILD_NATIVE_TEST)) \ 28 ) 29 30 # Build the manual test programs. 31 include $(call all-makefiles-under, $(LOCAL_PATH)) 32