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