1LOCAL_PATH := $(call my-dir) 2 3aarch64_asm_printer_TBLGEN_TABLES := \ 4 AArch64GenAsmWriter.inc \ 5 AArch64GenAsmWriter1.inc \ 6 AArch64GenRegisterInfo.inc \ 7 AArch64GenSubtargetInfo.inc \ 8 AArch64GenInstrInfo.inc 9 10aarch64_asm_printer_SRC_FILES := \ 11 AArch64InstPrinter.cpp 12 13# For the host 14# ===================================================== 15include $(CLEAR_VARS) 16include $(CLEAR_TBLGEN_VARS) 17 18TBLGEN_TABLES := $(aarch64_asm_printer_TBLGEN_TABLES) 19 20TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 21 22LOCAL_SRC_FILES := $(aarch64_asm_printer_SRC_FILES) 23 24LOCAL_MODULE:= libLLVMAArch64AsmPrinter 25 26LOCAL_C_INCLUDES += \ 27 $(LOCAL_PATH)/.. 28 29LOCAL_MODULE_HOST_OS := darwin linux windows 30 31include $(LLVM_HOST_BUILD_MK) 32include $(LLVM_TBLGEN_RULES_MK) 33include $(BUILD_HOST_STATIC_LIBRARY) 34 35# For the device only 36# ===================================================== 37ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 38include $(CLEAR_VARS) 39include $(CLEAR_TBLGEN_VARS) 40 41TBLGEN_TABLES := $(aarch64_asm_printer_TBLGEN_TABLES) 42 43TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 44 45LOCAL_SRC_FILES := $(aarch64_asm_printer_SRC_FILES) 46 47LOCAL_C_INCLUDES+= \ 48 $(LOCAL_PATH)/.. 49 50LOCAL_MODULE:= libLLVMAArch64AsmPrinter 51 52include $(LLVM_DEVICE_BUILD_MK) 53include $(LLVM_TBLGEN_RULES_MK) 54include $(BUILD_STATIC_LIBRARY) 55endif 56 57