blob: 08bc1e2e60cfe5eb9cb5d168256467377d0a1642 [file] [log] [blame]
Shih-wei Liao0d80b282010-07-20 00:13:58 -07001ifneq ($(TARGET_SIMULATOR),true)
Shih-wei Liao976baad2010-06-07 23:12:29 -07002
Shih-wei Liao462aefd2010-06-04 15:32:04 -07003LOCAL_PATH := $(call my-dir)
Shih-wei Liao546e8172010-06-06 05:58:58 -07004LLVM_ROOT_PATH := external/llvm/llvm
Shih-wei Liao462aefd2010-06-04 15:32:04 -07005
6include $(LLVM_ROOT_PATH)/llvm.mk
7
8# Executable for host
9# ========================================================
10include $(CLEAR_VARS)
11include $(CLEAR_TBLGEN_VARS)
12
Shih-wei Liao835a7b72010-08-06 02:29:11 -070013LOCAL_MODULE := llvm-rs-link
14
15LOCAL_MODULE_CLASS := EXECUTABLES
16
17LOCAL_SRC_FILES := \
18 llvm-rs-link.cpp
19
20LOCAL_STATIC_LIBRARIES := \
21 libLLVMLinker \
22 libLLVMipo \
23 libLLVMBitWriter \
24 libLLVMBitReader \
25 libLLVMScalarOpts \
26 libLLVMInstCombine \
27 libLLVMTransformUtils \
28 libLLVMipa \
29 libLLVMAnalysis \
30 libLLVMTarget \
31 libLLVMCore \
32 libLLVMSupport \
33 libLLVMSystem
34
35LOCAL_LDLIBS := -ldl -lpthread
36
37include $(LLVM_HOST_BUILD_MK)
38include $(LLVM_GEN_INTRINSICS_MK)
39include $(BUILD_HOST_EXECUTABLE)
40
41# Executable for host
42# ========================================================
43include $(CLEAR_VARS)
44include $(CLEAR_TBLGEN_VARS)
45
Shih-wei Liao462aefd2010-06-04 15:32:04 -070046LOCAL_MODULE := slang
47
Shih-wei Liaobdd78882010-06-06 05:55:36 -070048LOCAL_MODULE_CLASS := EXECUTABLES
49
Shih-wei Liao462aefd2010-06-04 15:32:04 -070050TBLGEN_TABLES := \
51 DiagnosticCommonKinds.inc \
Kirk Stewartb0cadb32010-07-20 17:26:06 -070052 DiagnosticFrontendKinds.inc \
53 DiagnosticSemaKinds.inc
Shih-wei Liao462aefd2010-06-04 15:32:04 -070054
55LOCAL_SRC_FILES := \
56 slang_driver.cpp \
57 libslang.cpp \
58 slang.cpp \
59 slang_backend.cpp \
60 slang_pragma_recorder.cpp \
61 slang_diagnostic_buffer.cpp \
62 slang_rs_context.cpp \
63 slang_rs_pragma_handler.cpp \
64 slang_rs_backend.cpp \
65 slang_rs_export_type.cpp \
66 slang_rs_export_element.cpp \
67 slang_rs_export_var.cpp \
68 slang_rs_export_func.cpp \
69 slang_rs_reflection.cpp
70
71LOCAL_STATIC_LIBRARIES := \
72 libLLVMipo \
73 libLLVMBitWriter \
74 libLLVMARMAsmPrinter \
Shih-wei Liao0d80b282010-07-20 00:13:58 -070075 libLLVMX86AsmPrinter \
Shih-wei Liao462aefd2010-06-04 15:32:04 -070076 libLLVMAsmPrinter \
77 libLLVMMCParser \
78 libLLVMARMCodeGen \
79 libLLVMARMInfo \
80 libLLVMX86CodeGen \
81 libLLVMX86Info \
82 libLLVMSelectionDAG \
83 libLLVMCodeGen \
84 libLLVMScalarOpts \
85 libLLVMInstCombine \
86 libLLVMTransformUtils \
87 libLLVMipa \
88 libLLVMAnalysis \
89 libLLVMTarget \
90 libLLVMMC \
91 libLLVMCore \
92 libclangIndex \
93 libclangSema \
94 libclangAnalysis \
95 libclangAST \
96 libclangParse \
97 libclangLex \
98 libclangCodeGen \
99 libclangBasic \
100 libLLVMSupport \
101 libLLVMSystem
102
103LOCAL_LDLIBS := -ldl -lpthread
104
Shih-wei Liao8fd54b32010-08-06 16:44:03 -0700105LOCAL_REQUIRED_MODULES := llvm-rs-link
Shih-wei Liao41e9d7d2010-08-06 09:57:37 -0700106
Shih-wei Liao462aefd2010-06-04 15:32:04 -0700107include $(CLANG_HOST_BUILD_MK)
108include $(CLANG_TBLGEN_RULES_MK)
109include $(BUILD_HOST_EXECUTABLE)
Shih-wei Liao976baad2010-06-07 23:12:29 -0700110
Shih-wei Liao0d80b282010-07-20 00:13:58 -0700111endif