OSDN Git Service

android: fix changed sources in makefiles
[android-x86/external-llvm.git] / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 LLVM70_ROOT_PATH := $(LOCAL_PATH)
3 LLVM70_TBLGEN := $(HOST_OUT_EXECUTABLES)/llvm70-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/ExecutionEngine \
33   lib/ExecutionEngine/RuntimeDyld \
34   lib/ExecutionEngine/MCJIT \
35   lib/ExecutionEngine/Orc \
36   lib/ExecutionEngine/Interpreter \
37   lib/Fuzzer \
38   lib/CodeGen \
39   lib/CodeGen/AsmPrinter \
40   lib/CodeGen/MIRParser \
41   lib/CodeGen/SelectionDAG \
42   lib/DebugInfo/DWARF \
43   lib/DebugInfo/PDB \
44   lib/DebugInfo/Symbolize \
45   lib/DebugInfo/MSF \
46   lib/DebugInfo/CodeView \
47   lib/Demangle \
48   lib/IR \
49   lib/IRReader \
50   lib/ToolDrivers/llvm-lib \
51   lib/Linker \
52   lib/LTO \
53   lib/LineEditor \
54   lib/MC \
55   lib/MC/MCDisassembler \
56   lib/MC/MCParser \
57   lib/Object \
58   lib/ObjectYAML \
59   lib/Option \
60   lib/Passes \
61   lib/ProfileData \
62   lib/Support \
63   lib/TableGen \
64   lib/Target \
65   lib/Transforms/AggressiveInstCombine \
66   lib/Transforms/Coroutines \
67   lib/Transforms/Hello \
68   lib/Transforms/IPO \
69   lib/Transforms/InstCombine \
70   lib/Transforms/Instrumentation \
71   lib/Transforms/ObjCARC \
72   lib/Transforms/Scalar \
73   lib/Transforms/Utils \
74   lib/Transforms/Vectorize \
75   lib/XRay \
76   lib/CodeGen/GlobalISel
77
78 # ARM Code Generation Libraries
79 subdirs += \
80   lib/Target/ARM \
81   lib/Target/ARM/AsmParser \
82   lib/Target/ARM/InstPrinter \
83   lib/Target/ARM/Disassembler \
84   lib/Target/ARM/MCTargetDesc \
85   lib/Target/ARM/TargetInfo \
86   lib/Target/ARM/Utils
87
88 # AArch64 Code Generation Libraries
89 subdirs += \
90   lib/Target/AArch64  \
91   lib/Target/AArch64/AsmParser \
92   lib/Target/AArch64/InstPrinter \
93   lib/Target/AArch64/Disassembler \
94   lib/Target/AArch64/MCTargetDesc \
95   lib/Target/AArch64/TargetInfo \
96   lib/Target/AArch64/Utils
97
98 # MIPS Code Generation Libraries
99 subdirs += \
100   lib/Target/Mips \
101   lib/Target/Mips/AsmParser \
102   lib/Target/Mips/InstPrinter \
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/InstPrinter \
112   lib/Target/X86/Disassembler \
113   lib/Target/X86/MCTargetDesc \
114   lib/Target/X86/TargetInfo \
115   lib/Target/X86/Utils
116
117 ifneq ($(filter radeonsi,$(BOARD_GPU_DRIVERS)),)
118 # AMDGPU Code Generation Libraries
119 subdirs += \
120   lib/Target/AMDGPU \
121   lib/Target/AMDGPU/AsmParser \
122   lib/Target/AMDGPU/InstPrinter \
123   lib/Target/AMDGPU/Disassembler \
124   lib/Target/AMDGPU/MCTargetDesc \
125   lib/Target/AMDGPU/TargetInfo \
126   lib/Target/AMDGPU/Utils
127 endif
128
129 # LLVM Command Line Utilities
130 subdirs += \
131   utils/TableGen
132
133 include $(LOCAL_PATH)/llvm.mk
134 include $(LOCAL_PATH)/shared_llvm.mk
135
136 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, $(subdirs)))