• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3llvm_link_SRC_FILES := \
4  llvm-link.cpp
5
6llvm_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
22include $(CLEAR_VARS)
23
24LOCAL_MODULE := llvm-link
25LOCAL_MODULE_TAGS := optional
26LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
27LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
28LOCAL_LDLIBS += -lpthread -lm -ldl
29
30include $(LLVM_HOST_BUILD_MK)
31include $(BUILD_HOST_EXECUTABLE)
32
33#===---------------------------------------------------------------===
34# llvm-link command line tool (target)
35#===---------------------------------------------------------------===
36
37ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
38include $(CLEAR_VARS)
39
40LOCAL_MODULE := llvm-link
41LOCAL_MODULE_TAGS := optional
42LOCAL_SRC_FILES := $(llvm_link_SRC_FILES)
43LOCAL_STATIC_LIBRARIES := $(llvm_link_STATIC_LIBRARIES)
44LOCAL_SHARED_LIBRARIES := \
45  libcutils  \
46  libc++
47
48include $(LLVM_DEVICE_BUILD_MK)
49include $(BUILD_EXECUTABLE)
50endif
51