1LOCAL_PATH := $(call my-dir) 2 3# For the device only 4# ===================================================== 5include $(CLEAR_VARS) 6include $(CLEAR_TBLGEN_VARS) 7 8x86_asm_parser_SRC_FILES := \ 9 X86AsmInstrumentation.cpp \ 10 X86AsmParser.cpp 11 12x86_asm_parser_TBLGEN_TABLES := \ 13 X86GenAsmMatcher.inc \ 14 X86GenInstrInfo.inc \ 15 X86GenRegisterInfo.inc \ 16 X86GenSubtargetInfo.inc 17 18x86_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/.. 19 20x86_asm_parser_C_INCLUDES += \ 21 $(LOCAL_PATH)/.. 22 23 24#===---------------------------------------------------------------=== 25# libX86AsmParser (host) 26#===---------------------------------------------------------------=== 27include $(CLEAR_VARS) 28include $(CLEAR_TBLGEN_VARS) 29 30LOCAL_MODULE:= libLLVMX86AsmParser 31LOCAL_MODULE_TAGS := optional 32LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES) 33LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES) 34TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES) 35TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR) 36 37include $(LLVM_HOST_BUILD_MK) 38include $(LLVM_TBLGEN_RULES_MK) 39include $(BUILD_HOST_STATIC_LIBRARY) 40 41 42#===---------------------------------------------------------------=== 43# libX86AsmParser (target) 44#===---------------------------------------------------------------=== 45ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 46include $(CLEAR_VARS) 47include $(CLEAR_TBLGEN_VARS) 48 49LOCAL_MODULE:= libLLVMX86AsmParser 50LOCAL_MODULE_TAGS := optional 51LOCAL_SRC_FILES := $(x86_asm_parser_SRC_FILES) 52LOCAL_C_INCLUDES += $(x86_asm_parser_C_INCLUDES) 53TBLGEN_TABLES := $(x86_asm_parser_TBLGEN_TABLES) 54TBLGEN_TD_DIR := $(x86_asm_parser_TBLGEN_TD_DIR) 55 56include $(LLVM_DEVICE_BUILD_MK) 57include $(LLVM_TBLGEN_RULES_MK) 58include $(BUILD_STATIC_LIBRARY) 59endif 60