Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 2 | |
Ying Wang | 12f4d68 | 2010-09-08 09:54:32 -0700 | [diff] [blame] | 3 | LLVM_ROOT_PATH := external/llvm |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 4 | include $(LLVM_ROOT_PATH)/llvm.mk |
| 5 | |
Ying Wang | 12f4d68 | 2010-09-08 09:54:32 -0700 | [diff] [blame] | 6 | CLANG_ROOT_PATH := external/clang |
| 7 | include $(CLANG_ROOT_PATH)/clang.mk |
| 8 | |
Zonr Chang | 3c250c5 | 2010-10-07 12:19:23 +0800 | [diff] [blame^] | 9 | # Executable llvm-rs-link for host |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 10 | # ======================================================== |
| 11 | include $(CLEAR_VARS) |
| 12 | include $(CLEAR_TBLGEN_VARS) |
| 13 | |
Shih-wei Liao | 835a7b7 | 2010-08-06 02:29:11 -0700 | [diff] [blame] | 14 | LOCAL_MODULE := llvm-rs-link |
| 15 | |
| 16 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 17 | |
| 18 | LOCAL_SRC_FILES := \ |
Zonr Chang | 92b344a | 2010-10-05 20:39:03 +0800 | [diff] [blame] | 19 | llvm-rs-link.cpp |
Shih-wei Liao | 835a7b7 | 2010-08-06 02:29:11 -0700 | [diff] [blame] | 20 | |
| 21 | LOCAL_STATIC_LIBRARIES := \ |
Zonr Chang | 92b344a | 2010-10-05 20:39:03 +0800 | [diff] [blame] | 22 | libLLVMLinker \ |
Shih-wei Liao | 835a7b7 | 2010-08-06 02:29:11 -0700 | [diff] [blame] | 23 | libLLVMipo \ |
| 24 | libLLVMBitWriter \ |
Zonr Chang | 92b344a | 2010-10-05 20:39:03 +0800 | [diff] [blame] | 25 | libLLVMBitReader \ |
Shih-wei Liao | 835a7b7 | 2010-08-06 02:29:11 -0700 | [diff] [blame] | 26 | libLLVMScalarOpts \ |
| 27 | libLLVMInstCombine \ |
| 28 | libLLVMTransformUtils \ |
| 29 | libLLVMipa \ |
| 30 | libLLVMAnalysis \ |
| 31 | libLLVMTarget \ |
| 32 | libLLVMCore \ |
| 33 | libLLVMSupport \ |
| 34 | libLLVMSystem |
| 35 | |
| 36 | LOCAL_LDLIBS := -ldl -lpthread |
| 37 | |
| 38 | include $(LLVM_HOST_BUILD_MK) |
| 39 | include $(LLVM_GEN_INTRINSICS_MK) |
| 40 | include $(BUILD_HOST_EXECUTABLE) |
| 41 | |
Zonr Chang | 3c250c5 | 2010-10-07 12:19:23 +0800 | [diff] [blame^] | 42 | # Host static library containing rs_types.rsh |
| 43 | # ======================================================== |
| 44 | include $(CLEAR_VARS) |
| 45 | |
| 46 | input_data_file := frameworks/base/libs/rs/scriptc/rs_types.rsh |
| 47 | slangdata_output_var_name := rs_types_header |
| 48 | |
| 49 | LOCAL_IS_HOST_MODULE := true |
| 50 | LOCAL_MODULE := librsheader-types |
| 51 | LOCAL_MODULE_TAGS := optional |
| 52 | |
| 53 | include $(LOCAL_PATH)/SlangData.mk |
| 54 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 55 | |
| 56 | # Host static library containing rs_cl.rsh |
| 57 | # ======================================================== |
| 58 | include $(CLEAR_VARS) |
| 59 | |
| 60 | input_data_file := frameworks/base/libs/rs/scriptc/rs_cl.rsh |
| 61 | slangdata_output_var_name := rs_cl_header |
| 62 | |
| 63 | LOCAL_IS_HOST_MODULE := true |
| 64 | LOCAL_MODULE := librsheader-cl |
| 65 | LOCAL_MODULE_TAGS := optional |
| 66 | |
| 67 | include $(LOCAL_PATH)/SlangData.mk |
| 68 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 69 | |
| 70 | # Host static library containing rs_cores.rsh |
| 71 | # ======================================================== |
| 72 | include $(CLEAR_VARS) |
| 73 | |
| 74 | input_data_file := frameworks/base/libs/rs/scriptc/rs_core.rsh |
| 75 | slangdata_output_var_name := rs_core_header |
| 76 | |
| 77 | LOCAL_IS_HOST_MODULE := true |
| 78 | LOCAL_MODULE := librsheader-core |
| 79 | LOCAL_MODULE_TAGS := optional |
| 80 | |
| 81 | include $(LOCAL_PATH)/SlangData.mk |
| 82 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 83 | |
| 84 | # Host static library containing rs_math.rsh |
| 85 | # ======================================================== |
| 86 | include $(CLEAR_VARS) |
| 87 | |
| 88 | input_data_file := frameworks/base/libs/rs/scriptc/rs_math.rsh |
| 89 | slangdata_output_var_name := rs_math_header |
| 90 | |
| 91 | LOCAL_IS_HOST_MODULE := true |
| 92 | LOCAL_MODULE := librsheader-math |
| 93 | LOCAL_MODULE_TAGS := optional |
| 94 | |
| 95 | include $(LOCAL_PATH)/SlangData.mk |
| 96 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 97 | |
| 98 | # Host static library containing rs_graphics.rsh |
| 99 | # ======================================================== |
| 100 | include $(CLEAR_VARS) |
| 101 | |
| 102 | input_data_file := frameworks/base/libs/rs/scriptc/rs_graphics.rsh |
| 103 | slangdata_output_var_name := rs_graphics_header |
| 104 | |
| 105 | LOCAL_IS_HOST_MODULE := true |
| 106 | LOCAL_MODULE := librsheader-graphics |
| 107 | LOCAL_MODULE_TAGS := optional |
| 108 | |
| 109 | include $(LOCAL_PATH)/SlangData.mk |
| 110 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 111 | |
| 112 | # Executable slang for host |
Shih-wei Liao | 835a7b7 | 2010-08-06 02:29:11 -0700 | [diff] [blame] | 113 | # ======================================================== |
| 114 | include $(CLEAR_VARS) |
| 115 | include $(CLEAR_TBLGEN_VARS) |
| 116 | |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 117 | LOCAL_MODULE := slang |
| 118 | |
Shih-wei Liao | bdd7888 | 2010-06-06 05:55:36 -0700 | [diff] [blame] | 119 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 120 | |
Shih-wei Liao | cecd11d | 2010-09-21 08:07:58 -0700 | [diff] [blame] | 121 | LOCAL_CFLAGS += -Wno-sign-promo |
| 122 | |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 123 | TBLGEN_TABLES := \ |
Shih-wei Liao | f52a620 | 2010-09-10 17:40:53 -0700 | [diff] [blame] | 124 | AttrList.inc \ |
| 125 | Attrs.inc \ |
| 126 | DeclNodes.inc \ |
| 127 | DiagnosticCommonKinds.inc \ |
Kirk Stewart | b0cadb3 | 2010-07-20 17:26:06 -0700 | [diff] [blame] | 128 | DiagnosticFrontendKinds.inc \ |
Zonr Chang | 92b344a | 2010-10-05 20:39:03 +0800 | [diff] [blame] | 129 | StmtNodes.inc \ |
Kirk Stewart | b0cadb3 | 2010-07-20 17:26:06 -0700 | [diff] [blame] | 130 | DiagnosticSemaKinds.inc |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 131 | |
| 132 | LOCAL_SRC_FILES := \ |
| 133 | slang_driver.cpp \ |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 134 | slang.cpp \ |
| 135 | slang_backend.cpp \ |
| 136 | slang_pragma_recorder.cpp \ |
| 137 | slang_diagnostic_buffer.cpp \ |
Zonr Chang | 3a9ca1f | 2010-10-06 17:52:56 +0800 | [diff] [blame] | 138 | slang_rs.cpp \ |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 139 | slang_rs_context.cpp \ |
| 140 | slang_rs_pragma_handler.cpp \ |
| 141 | slang_rs_backend.cpp \ |
| 142 | slang_rs_export_type.cpp \ |
| 143 | slang_rs_export_element.cpp \ |
| 144 | slang_rs_export_var.cpp \ |
| 145 | slang_rs_export_func.cpp \ |
Ying Wang | 3f8b44d | 2010-09-04 01:17:01 -0700 | [diff] [blame] | 146 | slang_rs_reflection.cpp \ |
| 147 | slang_rs_reflect_utils.cpp |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 148 | |
| 149 | LOCAL_STATIC_LIBRARIES := \ |
| 150 | libLLVMipo \ |
| 151 | libLLVMBitWriter \ |
| 152 | libLLVMARMAsmPrinter \ |
Shih-wei Liao | 0d80b28 | 2010-07-20 00:13:58 -0700 | [diff] [blame] | 153 | libLLVMX86AsmPrinter \ |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 154 | libLLVMAsmPrinter \ |
| 155 | libLLVMMCParser \ |
| 156 | libLLVMARMCodeGen \ |
| 157 | libLLVMARMInfo \ |
| 158 | libLLVMX86CodeGen \ |
| 159 | libLLVMX86Info \ |
| 160 | libLLVMSelectionDAG \ |
| 161 | libLLVMCodeGen \ |
| 162 | libLLVMScalarOpts \ |
| 163 | libLLVMInstCombine \ |
| 164 | libLLVMTransformUtils \ |
| 165 | libLLVMipa \ |
| 166 | libLLVMAnalysis \ |
| 167 | libLLVMTarget \ |
| 168 | libLLVMMC \ |
| 169 | libLLVMCore \ |
Zonr Chang | 92b344a | 2010-10-05 20:39:03 +0800 | [diff] [blame] | 170 | libclangParse \ |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 171 | libclangSema \ |
| 172 | libclangAnalysis \ |
| 173 | libclangAST \ |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 174 | libclangLex \ |
| 175 | libclangCodeGen \ |
| 176 | libclangBasic \ |
Stephen Hines | cc0efad | 2010-10-04 16:13:02 -0700 | [diff] [blame] | 177 | libclangFrontend \ |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 178 | libLLVMSupport \ |
Zonr Chang | 3c250c5 | 2010-10-07 12:19:23 +0800 | [diff] [blame^] | 179 | libLLVMSystem \ |
| 180 | librsheader-types \ |
| 181 | librsheader-cl \ |
| 182 | librsheader-core \ |
| 183 | librsheader-math \ |
| 184 | librsheader-graphics |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 185 | |
| 186 | LOCAL_LDLIBS := -ldl -lpthread |
| 187 | |
Shih-wei Liao | 8fd54b3 | 2010-08-06 16:44:03 -0700 | [diff] [blame] | 188 | LOCAL_REQUIRED_MODULES := llvm-rs-link |
Shih-wei Liao | 41e9d7d | 2010-08-06 09:57:37 -0700 | [diff] [blame] | 189 | |
Shih-wei Liao | 462aefd | 2010-06-04 15:32:04 -0700 | [diff] [blame] | 190 | include $(CLANG_HOST_BUILD_MK) |
| 191 | include $(CLANG_TBLGEN_RULES_MK) |
| 192 | include $(BUILD_HOST_EXECUTABLE) |