1 LOCAL_PATH := $(call my-dir)
3 #===---------------------------------------------------------------===
4 # libARMAsmParser (common)
5 #===---------------------------------------------------------------===
7 arm_asm_parser_SRC_FILES := \
10 arm_asm_parser_TBLGEN_TABLES := \
12 ARMGenRegisterInfo.inc \
13 ARMGenAsmMatcher.inc \
14 ARMGenSubtargetInfo.inc
16 arm_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/..
18 arm_asm_parser_C_INCLUDES := $(LOCAL_PATH)/..
21 #===---------------------------------------------------------------===
22 # libARMAsmParser (host)
23 #===---------------------------------------------------------------===
25 include $(CLEAR_TBLGEN_VARS)
27 LOCAL_MODULE:= libLLVM70ARMAsmParser
28 LOCAL_MODULE_HOST_OS := darwin linux windows
29 LOCAL_SRC_FILES := $(arm_asm_parser_SRC_FILES)
30 LOCAL_C_INCLUDES += $(arm_asm_parser_C_INCLUDES)
31 TBLGEN_TABLES := $(arm_asm_parser_TBLGEN_TABLES)
32 TBLGEN_TD_DIR := $(arm_asm_parser_TBLGEN_TD_DIR)
34 include $(LLVM70_HOST_BUILD_MK)
35 include $(LLVM70_TBLGEN_RULES_MK)
36 # Override the default optimization level to work around taking forever (~50m)
37 # to compile ARMAsmParser.cpp on Mac with gcc 4.2,
38 # or on Linux with mingw32msvc-gcc 4.2, which is used to cross-compile
40 LOCAL_CFLAGS_darwin += -O0
41 LOCAL_CFLAGS_windows += -O0
42 include $(BUILD_HOST_STATIC_LIBRARY)
45 #===---------------------------------------------------------------===
46 # libARMAsmParser (target)
47 #===---------------------------------------------------------------===
48 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
50 include $(CLEAR_TBLGEN_VARS)
52 LOCAL_MODULE:= libLLVM70ARMAsmParser
53 LOCAL_SRC_FILES := $(arm_asm_parser_SRC_FILES)
54 LOCAL_C_INCLUDES += $(arm_asm_parser_C_INCLUDES)
55 TBLGEN_TABLES := $(arm_asm_parser_TBLGEN_TABLES)
56 TBLGEN_TD_DIR := $(arm_asm_parser_TBLGEN_TD_DIR)
58 include $(LLVM70_DEVICE_BUILD_MK)
59 include $(LLVM70_TBLGEN_RULES_MK)
60 include $(BUILD_STATIC_LIBRARY)