blob: 0588511e324af64e5e47549dba34828d1567c620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
LOCAL_PATH := $(call my-dir)
#===---------------------------------------------------------------===
# libARMAsmParser (common)
#===---------------------------------------------------------------===
arm64_asm_parser_SRC_FILES := \
AArch64AsmParser.cpp
arm64_asm_parser_TBLGEN_TABLES := \
AArch64GenInstrInfo.inc \
AArch64GenRegisterInfo.inc \
AArch64GenAsmMatcher.inc \
AArch64GenSubtargetInfo.inc
arm64_asm_parser_TBLGEN_TD_DIR := $(LOCAL_PATH)/..
arm64_asm_parser_C_INCLUDES := $(LOCAL_PATH)/..
#===---------------------------------------------------------------===
# libARM64AsmParser (host)
#===---------------------------------------------------------------===
include $(CLEAR_VARS)
include $(CLEAR_TBLGEN_VARS)
LOCAL_MODULE:= libLLVMARM64AsmParser
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(arm64_asm_parser_SRC_FILES)
LOCAL_C_INCLUDES += $(arm64_asm_parser_C_INCLUDES)
TBLGEN_TABLES := $(arm64_asm_parser_TBLGEN_TABLES)
TBLGEN_TD_DIR := $(arm64_asm_parser_TBLGEN_TD_DIR)
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
ifneq (,$(filter windows darwin,$(HOST_OS)))
# Override the default optimization level to work around taking forever (~50m)
# to compile ARM64AsmParser.cpp on Mac with gcc 4.2,
# or on Linux with mingw32msvc-gcc 4.2, which is used to cross-compile
# the win_sdk.
LOCAL_CFLAGS += -O0
endif
include $(BUILD_HOST_STATIC_LIBRARY)
#===---------------------------------------------------------------===
# libARM64AsmParser (target)
#===---------------------------------------------------------------===
ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
include $(CLEAR_VARS)
include $(CLEAR_TBLGEN_VARS)
LOCAL_MODULE:= libLLVMARM64AsmParser
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(arm64_asm_parser_SRC_FILES)
LOCAL_C_INCLUDES += $(arm64_asm_parser_C_INCLUDES)
TBLGEN_TABLES := $(arm64_asm_parser_TBLGEN_TABLES)
TBLGEN_TD_DIR := $(arm64_asm_parser_TBLGEN_TD_DIR)
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_STATIC_LIBRARY)
endif
|