Android.mk revision cd81d94322a39503e4a3e87b6ee03d4fcb3465fb
1LOCAL_PATH := $(call my-dir)
2
3mips_mc_desc_TBLGEN_TABLES := \
4  MipsGenRegisterInfo.inc \
5  MipsGenInstrInfo.inc \
6  MipsGenMCCodeEmitter.inc \
7  MipsGenSubtargetInfo.inc
8
9mips_mc_desc_SRC_FILES := \
10  MipsABIFlagsSection.cpp \
11  MipsAsmBackend.cpp \
12  MipsELFObjectWriter.cpp \
13  MipsELFStreamer.cpp \
14  MipsMCAsmInfo.cpp \
15  MipsMCCodeEmitter.cpp \
16  MipsMCExpr.cpp \
17  MipsMCTargetDesc.cpp \
18  MipsNaClELFStreamer.cpp \
19  MipsTargetStreamer.cpp
20
21# For the host
22# =====================================================
23include $(CLEAR_VARS)
24include $(CLEAR_TBLGEN_VARS)
25
26LOCAL_MODULE:= libLLVMMipsDesc
27LOCAL_MODULE_TAGS := optional
28
29LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
30LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
31
32TBLGEN_TD_DIR := $(LOCAL_PATH)/..
33TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
34
35include $(LLVM_HOST_BUILD_MK)
36include $(LLVM_TBLGEN_RULES_MK)
37include $(LLVM_GEN_INTRINSICS_MK)
38include $(BUILD_HOST_STATIC_LIBRARY)
39
40# For the device only
41# =====================================================
42ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
43include $(CLEAR_VARS)
44include $(CLEAR_TBLGEN_VARS)
45
46LOCAL_MODULE:= libLLVMMipsDesc
47LOCAL_MODULE_TAGS := optional
48
49LOCAL_SRC_FILES := $(mips_mc_desc_SRC_FILES)
50LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
51
52TBLGEN_TD_DIR := $(LOCAL_PATH)/..
53TBLGEN_TABLES := $(mips_mc_desc_TBLGEN_TABLES)
54
55include $(LLVM_DEVICE_BUILD_MK)
56include $(LLVM_TBLGEN_RULES_MK)
57include $(LLVM_GEN_INTRINSICS_MK)
58include $(BUILD_STATIC_LIBRARY)
59endif
60