LOCAL_PATH:= $(call my-dir)
llvm_link_SRC_FILES := \
llvm-link.cpp
llvm_link_STATIC_LIBRARIES := \
libLLVMLinker \
libLLVMIRReader \
libLLVMBitReader \
libLLVMBitWriter \
libLLVMAsmParser \
libLLVMTransformUtils \
libLLVMAnalysis \
libLLVMTarget \
libLLVMCore \
libLLVMSupport
#===---------------------------------------------------------------===
# llvm-link command line tool (host)
#===---------------------------------------------------------------===
include $(CLEAR_VARS)
LOCAL_MODULE := llvm-link
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
LOCAL_LDLIBS += -lpthread -lm -ldl
include $(LLVM_HOST_BUILD_MK)
include $(BUILD_HOST_EXECUTABLE)
#===---------------------------------------------------------------===
# llvm-link command line tool (target)
#===---------------------------------------------------------------===
ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
include $(CLEAR_VARS)
LOCAL_MODULE := llvm-link
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
LOCAL_SHARED_LIBRARIES := \
libcutils \
libc++
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_EXECUTABLE)
endif