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