1LOCAL_PATH:= $(call my-dir) 2 3MIRParser_SRC_FILES := \ 4 MILexer.cpp \ 5 MIParser.cpp \ 6 MIRParser.cpp 7 8# For the host 9# ===================================================== 10include $(CLEAR_VARS) 11 12LOCAL_SRC_FILES := $(MIRParser_SRC_FILES) 13 14LOCAL_MODULE:= libLLVMMIRParser 15 16LOCAL_MODULE_TAGS := optional 17 18include $(LLVM_HOST_BUILD_MK) 19include $(LLVM_GEN_ATTRIBUTES_MK) 20include $(BUILD_HOST_STATIC_LIBRARY) 21 22# For the device 23# ===================================================== 24include $(CLEAR_VARS) 25ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 26 27LOCAL_SRC_FILES := $(MIRParser_SRC_FILES) 28 29LOCAL_MODULE:= libLLVMMIRParser 30 31LOCAL_MODULE_TAGS := optional 32 33include $(LLVM_DEVICE_BUILD_MK) 34include $(LLVM_GEN_ATTRIBUTES_MK) 35include $(BUILD_STATIC_LIBRARY) 36endif 37