OSDN Git Service

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