OSDN Git Service

android: shared_llvm.mk: add libLLVMOrcJIT to llvm_device_static_libraries
[android-x86/external-llvm.git] / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 LLVM90_ROOT_PATH := $(LOCAL_PATH)
3 LLVM90_TBLGEN := $(HOST_OUT_EXECUTABLES)/llvm90-tblgen
4
5 FORCE_BUILD_LLVM_DISABLE_NDEBUG ?= false
6 # Legality check: FORCE_BUILD_LLVM_DISABLE_NDEBUG should consist of one word -- either "true" or "false".
7 ifneq "$(words $(FORCE_BUILD_LLVM_DISABLE_NDEBUG))$(words $(filter-out true false,$(FORCE_BUILD_LLVM_DISABLE_NDEBUG)))" "10"
8   $(error FORCE_BUILD_LLVM_DISABLE_NDEBUG may only be true, false, or unset)
9 endif
10
11 FORCE_BUILD_LLVM_DEBUG ?= false
12 # Legality check: FORCE_BUILD_LLVM_DEBUG should consist of one word -- either "true" or "false".
13 ifneq "$(words $(FORCE_BUILD_LLVM_DEBUG))$(words $(filter-out true false,$(FORCE_BUILD_LLVM_DEBUG)))" "10"
14   $(error FORCE_BUILD_LLVM_DEBUG may only be true, false, or unset)
15 endif
16
17 FORCE_BUILD_LLVM_GLOBAL_ISEL ?= true
18 # Legality check: FORCE_BUILD_LLVM_GLOBAL_ISEL should consist of one word -- either "true" or "false".
19 ifneq "$(words $(FORCE_BUILD_LLVM_GLOBAL_ISEL))$(words $(filter-out true false,$(FORCE_BUILD_LLVM_GLOBAL_ISEL)))" "10"
20   $(error FORCE_BUILD_LLVM_GLOBAL_ISEL may only be true, false, or unset)
21 endif
22
23 include $(CLEAR_VARS)
24
25 # LLVM Libraries
26 subdirs := \
27   lib/Analysis \
28   lib/AsmParser \
29   lib/BinaryFormat \
30   lib/Bitcode/Reader \
31   lib/Bitcode/Writer \
32   lib/Bitstream/Reader \
33   lib/ExecutionEngine \
34   lib/ExecutionEngine/RuntimeDyld \
35   lib/ExecutionEngine/JITLink \
36   lib/ExecutionEngine/MCJIT \
37   lib/ExecutionEngine/Orc \
38   lib/ExecutionEngine/Interpreter \
39   lib/Fuzzer \
40   lib/CodeGen \
41   lib/CodeGen/AsmPrinter \
42   lib/CodeGen/MIRParser \
43   lib/CodeGen/SelectionDAG \
44   lib/DebugInfo/DWARF \
45   lib/DebugInfo/PDB \
46   lib/DebugInfo/Symbolize \
47   lib/DebugInfo/MSF \
48   lib/DebugInfo/CodeView \
49   lib/Demangle \
50   lib/IR \
51   lib/IRReader \
52   lib/ToolDrivers/llvm-lib \
53   lib/Linker \
54   lib/LTO \
55   lib/LineEditor \
56   lib/MC \
57   lib/MC/MCDisassembler \
58   lib/MC/MCParser \
59   lib/Object \
60   lib/ObjectYAML \
61   lib/Option \
62   lib/Passes \
63   lib/ProfileData \
64   lib/Remarks \
65   lib/Support \
66   lib/TableGen \
67   lib/Target \
68   lib/Transforms/AggressiveInstCombine \
69   lib/Transforms/Coroutines \
70   lib/Transforms/Hello \
71   lib/Transforms/IPO \
72   lib/Transforms/InstCombine \
73   lib/Transforms/Instrumentation \
74   lib/Transforms/ObjCARC \
75   lib/Transforms/Scalar \
76   lib/Transforms/Utils \
77   lib/Transforms/Vectorize \
78   lib/XRay \
79   lib/CodeGen/GlobalISel
80
81 # ARM Code Generation Libraries
82 subdirs += \
83   lib/Target/ARM \
84   lib/Target/ARM/AsmParser \
85   lib/Target/ARM/Disassembler \
86   lib/Target/ARM/MCTargetDesc \
87   lib/Target/ARM/TargetInfo \
88   lib/Target/ARM/Utils
89
90 # AArch64 Code Generation Libraries
91 subdirs += \
92   lib/Target/AArch64  \
93   lib/Target/AArch64/AsmParser \
94   lib/Target/AArch64/Disassembler \
95   lib/Target/AArch64/MCTargetDesc \
96   lib/Target/AArch64/TargetInfo \
97   lib/Target/AArch64/Utils
98
99 # MIPS Code Generation Libraries
100 subdirs += \
101   lib/Target/Mips \
102   lib/Target/Mips/AsmParser \
103   lib/Target/Mips/Disassembler \
104   lib/Target/Mips/MCTargetDesc \
105   lib/Target/Mips/TargetInfo
106
107 # X86 Code Generation Libraries
108 subdirs += \
109   lib/Target/X86 \
110   lib/Target/X86/AsmParser \
111   lib/Target/X86/Disassembler \
112   lib/Target/X86/MCTargetDesc \
113   lib/Target/X86/TargetInfo \
114   lib/Target/X86/Utils
115
116 ifneq ($(filter radeonsi,$(BOARD_GPU_DRIVERS)),)
117 # AMDGPU Code Generation Libraries
118 subdirs += \
119   lib/Target/AMDGPU \
120   lib/Target/AMDGPU/AsmParser \
121   lib/Target/AMDGPU/Disassembler \
122   lib/Target/AMDGPU/MCTargetDesc \
123   lib/Target/AMDGPU/TargetInfo \
124   lib/Target/AMDGPU/Utils
125 endif
126
127 # LLVM Command Line Utilities
128 subdirs += \
129   utils/TableGen
130
131 include $(LOCAL_PATH)/llvm.mk
132 include $(LOCAL_PATH)/shared_llvm.mk
133
134 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, $(subdirs)))