1# Build the unit tests for installd 2LOCAL_PATH := $(call my-dir) 3include $(CLEAR_VARS) 4LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 5 6# Build the unit tests. 7test_src_files := \ 8 installd_utils_test.cpp 9 10shared_libraries := \ 11 libbase \ 12 libutils \ 13 libcutils \ 14 15static_libraries := \ 16 libinstalld \ 17 libdiskusage \ 18 19c_includes := \ 20 frameworks/native/cmds/installd 21 22$(foreach file,$(test_src_files), \ 23 $(eval include $(CLEAR_VARS)) \ 24 $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \ 25 $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \ 26 $(eval LOCAL_SRC_FILES := $(file)) \ 27 $(eval LOCAL_C_INCLUDES := $(c_includes)) \ 28 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \ 29 $(eval LOCAL_CLANG := true) \ 30 $(eval include $(BUILD_NATIVE_TEST)) \ 31) 32