1 LOCAL_PATH := $(call my-dir) 2 3 LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6 #===---------------------------------------------------------------=== 7 # llvm-cov command line tool 8 #===---------------------------------------------------------------=== 9 10 llvm_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 20 llvm_cov_STATIC_LIBRARIES := \ 21 libLLVMObject \ 22 libLLVMProfileData \ 23 libLLVMMC \ 24 libLLVMMCParser \ 25 libLLVMBitReader \ 26 libLLVMCore \ 27 libLLVMSupport \ 28 29 include $(CLEAR_VARS) 30 31 LOCAL_MODULE := llvm-cov 32 LOCAL_MODULE_TAGS := optional 33 LOCAL_MODULE_CLASS := EXECUTABLES 34 LOCAL_IS_HOST_MODULE := true 35 36 LOCAL_SRC_FILES := $(llvm_cov_SRC_FILES) 37 38 LOCAL_STATIC_LIBRARIES := $(llvm_cov_STATIC_LIBRARIES) 39 40 LOCAL_LDLIBS += -lpthread -lm -ldl 41 42 include $(LLVM_ROOT_PATH)/llvm.mk 43 include $(LLVM_HOST_BUILD_MK) 44 include $(LLVM_GEN_INTRINSICS_MK) 45 include $(BUILD_HOST_EXECUTABLE) 46