diff options
Diffstat (limited to 'tools/llvm-link/Android.mk')
-rw-r--r-- | tools/llvm-link/Android.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tools/llvm-link/Android.mk b/tools/llvm-link/Android.mk new file mode 100644 index 0000000..db8f2af --- /dev/null +++ b/tools/llvm-link/Android.mk @@ -0,0 +1,48 @@ +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) +#===---------------------------------------------------------------=== + +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 \ + libstlport + +include $(LLVM_DEVICE_BUILD_MK) +include $(BUILD_EXECUTABLE) |