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