OSDN Git Service

android: AMDGPU: Rename OpenCL lowering pass to be R600 specific.
[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/Coroutines \
66   lib/Transforms/Hello \
67   lib/Transforms/IPO \
68   lib/Transforms/InstCombine \
69   lib/Transforms/Instrumentation \
70   lib/Transforms/ObjCARC \
71   lib/Transforms/Scalar \
72   lib/Transforms/Utils \
73   lib/Transforms/Vectorize \
74   lib/XRay \
75   lib/CodeGen/GlobalISel
76
77 # ARM Code Generation Libraries
78 subdirs += \
79   lib/Target/ARM \
80   lib/Target/ARM/AsmParser \
81   lib/Target/ARM/InstPrinter \
82   lib/Target/ARM/Disassembler \
83   lib/Target/ARM/MCTargetDesc \
84   lib/Target/ARM/TargetInfo \
85   lib/Target/ARM/Utils
86
87 # AArch64 Code Generation Libraries
88 subdirs += \
89   lib/Target/AArch64  \
90   lib/Target/AArch64/AsmParser \
91   lib/Target/AArch64/InstPrinter \
92   lib/Target/AArch64/Disassembler \
93   lib/Target/AArch64/MCTargetDesc \
94   lib/Target/AArch64/TargetInfo \
95   lib/Target/AArch64/Utils
96
97 # MIPS Code Generation Libraries
98 subdirs += \
99   lib/Target/Mips \
100   lib/Target/Mips/AsmParser \
101   lib/Target/Mips/InstPrinter \
102   lib/Target/Mips/Disassembler \
103   lib/Target/Mips/MCTargetDesc \
104   lib/Target/Mips/TargetInfo
105
106 # X86 Code Generation Libraries
107 subdirs += \
108   lib/Target/X86 \
109   lib/Target/X86/AsmParser \
110   lib/Target/X86/InstPrinter \
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/InstPrinter \
122   lib/Target/AMDGPU/Disassembler \
123   lib/Target/AMDGPU/MCTargetDesc \
124   lib/Target/AMDGPU/TargetInfo \
125   lib/Target/AMDGPU/Utils
126 endif
127
128 # LLVM Command Line Utilities
129 subdirs += \
130   utils/TableGen
131
132 include $(LOCAL_PATH)/llvm.mk
133 include $(LOCAL_PATH)/shared_llvm.mk
134
135 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, $(subdirs)))