Android.mk revision 36b56886974eae4f9c5ebc96befd3e7bfe5de338
1LOCAL_PATH := $(call my-dir)
2
3x86_mc_desc_TBLGEN_TABLES := \
4  X86GenRegisterInfo.inc \
5  X86GenInstrInfo.inc \
6  X86GenSubtargetInfo.inc
7
8x86_mc_desc_SRC_FILES := \
9  X86AsmBackend.cpp \
10  X86ELFObjectWriter.cpp \
11  X86ELFRelocationInfo.cpp \
12  X86MCTargetDesc.cpp \
13  X86MCAsmInfo.cpp \
14  X86MCCodeEmitter.cpp \
15  X86MachORelocationInfo.cpp \
16  X86MachObjectWriter.cpp \
17  X86WinCOFFObjectWriter.cpp
18
19# For the host
20# =====================================================
21include $(CLEAR_VARS)
22include $(CLEAR_TBLGEN_VARS)
23
24LOCAL_MODULE:= libLLVMX86Desc
25LOCAL_MODULE_TAGS := optional
26
27LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES)
28LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
29TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES)
30TBLGEN_TD_DIR := $(LOCAL_PATH)/..
31
32include $(LLVM_HOST_BUILD_MK)
33include $(LLVM_TBLGEN_RULES_MK)
34include $(LLVM_GEN_INTRINSICS_MK)
35include $(BUILD_HOST_STATIC_LIBRARY)
36
37# For the device only
38# =====================================================
39ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
40include $(CLEAR_VARS)
41include $(CLEAR_TBLGEN_VARS)
42
43
44LOCAL_MODULE:= libLLVMX86Desc
45LOCAL_MODULE_TAGS := optional
46
47LOCAL_SRC_FILES := $(x86_mc_desc_SRC_FILES)
48LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
49TBLGEN_TABLES := $(x86_mc_desc_TBLGEN_TABLES)
50TBLGEN_TD_DIR := $(LOCAL_PATH)/..
51
52include $(LLVM_DEVICE_BUILD_MK)
53include $(LLVM_TBLGEN_RULES_MK)
54include $(LLVM_GEN_INTRINSICS_MK)
55include $(BUILD_STATIC_LIBRARY)
56endif
57