• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2015 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#      http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17LOCAL_PATH:= $(call my-dir)
18
19LLVM_ROOT_PATH := $(LOCAL_PATH)/../../
20include $(LLVM_ROOT_PATH)/llvm.mk
21
22# For the host only
23# =====================================================
24include $(CLEAR_VARS)
25include $(CLEAR_TBLGEN_VARS)
26
27LOCAL_MODULE := libLTO
28
29LOCAL_MODULE_CLASS := SHARED_LIBRARIES
30
31llvm_lto_SRC_FILES := \
32  lto.cpp \
33  LTODisassembler.cpp
34
35LOCAL_SRC_FILES := $(llvm_lto_SRC_FILES)
36
37llvm_lto_STATIC_LIBRARIES := \
38  libLLVMLinker \
39  libLLVMipo \
40  libLLVMDebugInfoDWARF \
41  libLLVMDebugInfoPDB \
42  libLLVMIRReader \
43  libLLVMBitWriter \
44  libLLVMBitReader \
45  libLLVMARMCodeGen \
46  libLLVMARMAsmParser \
47  libLLVMARMAsmPrinter \
48  libLLVMARMInfo \
49  libLLVMARMDesc \
50  libLLVMARMDisassembler \
51  libLLVMMipsCodeGen \
52  libLLVMMipsInfo \
53  libLLVMMipsDesc \
54  libLLVMMipsAsmParser \
55  libLLVMMipsAsmPrinter \
56  libLLVMMipsDisassembler \
57  libLLVMX86CodeGen \
58  libLLVMX86Info \
59  libLLVMX86Desc \
60  libLLVMX86AsmParser \
61  libLLVMX86AsmPrinter \
62  libLLVMX86Utils \
63  libLLVMX86Disassembler \
64  libLLVMAArch64CodeGen \
65  libLLVMAArch64Info \
66  libLLVMAArch64Desc \
67  libLLVMAArch64AsmParser \
68  libLLVMAArch64AsmPrinter \
69  libLLVMAArch64Utils \
70  libLLVMAArch64Disassembler \
71  libLLVMExecutionEngine \
72  libLLVMRuntimeDyld \
73  libLLVMMCJIT \
74  libLLVMOrcJIT \
75  libLLVMAsmPrinter \
76  libLLVMSelectionDAG \
77  libLLVMCodeGen \
78  libLLVMObject \
79  libLLVMScalarOpts \
80  libLLVMInstCombine \
81  libLLVMInstrumentation \
82  libLLVMTransformObjCARC \
83  libLLVMTransformUtils \
84  libLLVMVectorize \
85  libLLVMAnalysis \
86  libLLVMTarget \
87  libLLVMMCDisassembler \
88  libLLVMMC \
89  libLLVMMCParser \
90  libLLVMCore \
91  libLLVMAsmParser \
92  libLLVMOption \
93  libLLVMLTO \
94  libLLVMSupport \
95  libLLVMProfileData
96
97LOCAL_LDLIBS_darwin := -lpthread -ldl
98LOCAL_LDLIBS_linux := -lpthread -ldl
99
100LOCAL_STATIC_LIBRARIES := $(llvm_lto_STATIC_LIBRARIES) $(llvm_lto_STATIC_LIBRARIES)
101
102include $(LLVM_HOST_BUILD_MK)
103include $(LLVM_GEN_ATTRIBUTES_MK)
104include $(LLVM_GEN_INTRINSICS_MK)
105include $(BUILD_HOST_SHARED_LIBRARY)
106