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