1 LOCAL_PATH := $(call my-dir) 2 3 LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4 5 6 #===---------------------------------------------------------------=== 7 # llvm-ar command line tool 8 #===---------------------------------------------------------------=== 9 10 llvm_ar_SRC_FILES := \ 11 llvm-ar.cpp 12 13 llvm_ar_STATIC_LIBRARIES := \ 14 libLLVMObject \ 15 libLLVMBitReader \ 16 libLLVMCore \ 17 libLLVMSupport \ 18 19 # libLLVMAArch64CodeGen \ 20 libLLVMAArch64Info \ 21 libLLVMAArch64Desc \ 22 libLLVMAArch64AsmParser \ 23 libLLVMAArch64AsmPrinter \ 24 libLLVMAArch64Disassembler \ 25 libLLVMARMCodeGen \ 26 libLLVMARMInfo \ 27 libLLVMARMDesc \ 28 libLLVMARMAsmParser \ 29 libLLVMARMAsmPrinter \ 30 libLLVMARMDisassembler \ 31 libLLVMMipsCodeGen \ 32 libLLVMMipsInfo \ 33 libLLVMMipsDesc \ 34 libLLVMMipsAsmParser \ 35 libLLVMMipsAsmPrinter \ 36 libLLVMMipsDisassembler \ 37 libLLVMX86CodeGen \ 38 libLLVMX86Info \ 39 libLLVMX86Desc \ 40 libLLVMX86AsmParser \ 41 libLLVMX86AsmPrinter \ 42 libLLVMX86Disassembler \ 43 libLLVMAsmPrinter \ 44 libLLVMSelectionDAG \ 45 libLLVMCodeGen \ 46 libLLVMObject \ 47 libLLVMScalarOpts \ 48 libLLVMInstCombine \ 49 libLLVMInstrumentation \ 50 libLLVMTransformObjCARC \ 51 libLLVMTransformUtils \ 52 libLLVMipa \ 53 libLLVMAnalysis \ 54 libLLVMTarget \ 55 libLLVMMC \ 56 libLLVMMCParser \ 57 libLLVMCore \ 58 libLLVMAsmParser \ 59 libLLVMOption \ 60 libLLVMSupport \ 61 libLLVMVectorize \ 62 63 64 65 66 include $(CLEAR_VARS) 67 68 LOCAL_MODULE := llvm-ar 69 LOCAL_MODULE_TAGS := optional 70 LOCAL_MODULE_CLASS := EXECUTABLES 71 LOCAL_IS_HOST_MODULE := true 72 73 LOCAL_SRC_FILES := $(llvm_ar_SRC_FILES) 74 75 LOCAL_STATIC_LIBRARIES := $(llvm_ar_STATIC_LIBRARIES) 76 LOCAL_SHARED_LIBRARIES := libLLVM 77 78 LOCAL_LDLIBS += -lpthread -lm -ldl 79 80 include $(LLVM_ROOT_PATH)/llvm.mk 81 include $(LLVM_HOST_BUILD_MK) 82 include $(BUILD_HOST_EXECUTABLE) 83 84 LLVM_RANLIB = $(HOST_OUT)/bin/llvm-ranlib 85 86 # Make sure if llvm-ar (i.e. $(LOCAL_MODULE)) get installed, 87 # llvm-ranlib will get installed as well. 88 ALL_MODULES.$(LOCAL_MODULE).INSTALLED := \ 89 $(ALL_MODULES.$(LOCAL_MODULE).INSTALLED) $(LLVM_RANLIB) 90 # the additional dependency is needed when you run mm/mmm. 91 $(LOCAL_MODULE) : $(LLVM_RANLIB) 92 93 # Symlink for llvm-ranlib 94 $(LLVM_RANLIB) : $(LOCAL_INSTALLED_MODULE) 95 @echo "Symlink $@ -> $<" 96 $(hide) ln -sf $(notdir $<) $@ 97