1LOCAL_PATH:= $(call my-dir) 2 3libtablegen_SRC_FILES := \ 4 Error.cpp \ 5 Main.cpp \ 6 Record.cpp \ 7 SetTheory.cpp \ 8 StringMatcher.cpp \ 9 TableGenBackend.cpp \ 10 TGLexer.cpp \ 11 TGParser.cpp 12 13# For the host 14# ===================================================== 15include $(CLEAR_VARS) 16 17LOCAL_SRC_FILES := $(libtablegen_SRC_FILES) 18LOCAL_MODULE:= libLLVMTableGen 19 20LOCAL_MODULE_TAGS := optional 21 22REQUIRES_EH := 1 23REQUIRES_RTTI := 1 24 25include $(LLVM_HOST_BUILD_MK) 26include $(BUILD_HOST_STATIC_LIBRARY) 27 28## For the device 29## ===================================================== 30ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 31#include $(CLEAR_VARS) 32# 33#LOCAL_SRC_FILES := $(libtablegen_SRC_FILES) 34#LOCAL_MODULE:= libLLVMTableGen 35# 36#LOCAL_MODULE_TAGS := optional 37# 38#include $(LLVM_DEVICE_BUILD_MK) 39#include $(BUILD_STATIC_LIBRARY) 40endif 41