Home | History | Annotate | Download | only in llvm-link
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 llvm_link_SRC_FILES := \
      4   llvm-link.cpp
      5 
      6 llvm_link_STATIC_LIBRARIES := \
      7   libLLVMLinker \
      8   libLLVMIRReader \
      9   libLLVMBitReader \
     10   libLLVMBitWriter \
     11   libLLVMAsmParser \
     12   libLLVMTransformUtils \
     13   libLLVMAnalysis \
     14   libLLVMTarget \
     15   libLLVMCore \
     16   libLLVMSupport
     17 
     18 #===---------------------------------------------------------------===
     19 # llvm-link command line tool (host)
     20 #===---------------------------------------------------------------===
     21 
     22 include $(CLEAR_VARS)
     23 
     24 LOCAL_MODULE := llvm-link
     25 LOCAL_MODULE_TAGS := optional
     26 LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
     27 LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
     28 LOCAL_LDLIBS += -lpthread -lm -ldl
     29 
     30 include $(LLVM_HOST_BUILD_MK)
     31 include $(BUILD_HOST_EXECUTABLE)
     32 
     33 #===---------------------------------------------------------------===
     34 # llvm-link command line tool (target)
     35 #===---------------------------------------------------------------===
     36 
     37 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
     38 include $(CLEAR_VARS)
     39 
     40 LOCAL_MODULE := llvm-link
     41 LOCAL_MODULE_TAGS := optional
     42 LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
     43 LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
     44 LOCAL_SHARED_LIBRARIES := \
     45   libcutils  \
     46   libc++
     47 
     48 include $(LLVM_DEVICE_BUILD_MK)
     49 include $(BUILD_EXECUTABLE)
     50 endif
     51