1LOCAL_PATH := $(call my-dir) 2 3LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6#===---------------------------------------------------------------=== 7# llvm-cov command line tool 8#===---------------------------------------------------------------=== 9 10llvm_cov_SRC_FILES := \ 11 CodeCoverage.cpp \ 12 CoverageFilters.cpp \ 13 CoverageReport.cpp \ 14 CoverageSummaryInfo.cpp \ 15 gcov.cpp \ 16 llvm-cov.cpp \ 17 SourceCoverageView.cpp \ 18 TestingSupport.cpp 19 20llvm_cov_STATIC_LIBRARIES := \ 21 libLLVMObject \ 22 libLLVMProfileData \ 23 libLLVMMC \ 24 libLLVMMCParser \ 25 libLLVMBitReader \ 26 libLLVMCore \ 27 libLLVMSupport \ 28 29include $(CLEAR_VARS) 30 31LOCAL_MODULE := llvm-cov 32LOCAL_MODULE_TAGS := optional 33LOCAL_MODULE_CLASS := EXECUTABLES 34LOCAL_IS_HOST_MODULE := true 35 36LOCAL_SRC_FILES := $(llvm_cov_SRC_FILES) 37 38LOCAL_STATIC_LIBRARIES := $(llvm_cov_STATIC_LIBRARIES) 39 40LOCAL_LDLIBS += -lpthread -lm -ldl 41 42include $(LLVM_ROOT_PATH)/llvm.mk 43include $(LLVM_HOST_BUILD_MK) 44include $(LLVM_GEN_INTRINSICS_MK) 45include $(BUILD_HOST_EXECUTABLE) 46