1 LOCAL_PATH:= $(call my-dir) 2 3 # For the host only 4 # ===================================================== 5 include $(CLEAR_VARS) 6 include $(CLEAR_TBLGEN_VARS) 7 8 LOCAL_MODULE := clang 9 10 LOCAL_MODULE_TAGS := optional tests 11 12 LOCAL_MODULE_CLASS := EXECUTABLES 13 14 TBLGEN_TABLES := \ 15 DiagnosticCommonKinds.inc \ 16 DiagnosticDriverKinds.inc \ 17 DiagnosticFrontendKinds.inc \ 18 CC1Options.inc \ 19 CC1AsOptions.inc 20 21 clang_SRC_FILES := \ 22 cc1_main.cpp \ 23 cc1as_main.cpp \ 24 driver.cpp 25 26 LOCAL_SRC_FILES := $(clang_SRC_FILES) 27 28 LOCAL_STATIC_LIBRARIES := \ 29 libclangFrontendTool \ 30 libclangFrontend \ 31 libclangARCMigrate \ 32 libclangDriver \ 33 libclangSerialization \ 34 libclangCodeGen \ 35 libclangParse \ 36 libclangSema \ 37 libclangStaticAnalyzerFrontend \ 38 libclangStaticAnalyzerCheckers \ 39 libclangStaticAnalyzerCore \ 40 libclangAnalysis \ 41 libclangIndex \ 42 libclangRewrite \ 43 libclangAST \ 44 libclangLex \ 45 libclangBasic \ 46 libLLVMARMAsmParser \ 47 libLLVMARMCodeGen \ 48 libLLVMARMDisassembler \ 49 libLLVMARMDesc \ 50 libLLVMX86Info \ 51 libLLVMX86AsmParser \ 52 libLLVMX86CodeGen \ 53 libLLVMX86Disassembler \ 54 libLLVMX86AsmPrinter \ 55 libLLVMX86Desc \ 56 libLLVMX86Utils \ 57 libLLVMARMInfo \ 58 libLLVMAsmParser \ 59 libLLVMAsmPrinter \ 60 libLLVMBitReader \ 61 libLLVMBitWriter \ 62 libLLVMSelectionDAG \ 63 libLLVMInstCombine \ 64 libLLVMInstrumentation \ 65 libLLVMCodeGen \ 66 libLLVMipo \ 67 libLLVMipa \ 68 libLLVMLinker \ 69 libLLVMMC \ 70 libLLVMMCParser \ 71 libLLVMScalarOpts \ 72 libLLVMTransformUtils \ 73 libLLVMAnalysis \ 74 libLLVMCore \ 75 libLLVMSupport \ 76 libLLVMTarget 77 78 LOCAL_LDLIBS += -lpthread -lm -ldl 79 80 include $(CLANG_HOST_BUILD_MK) 81 include $(CLANG_TBLGEN_RULES_MK) 82 include $(BUILD_HOST_EXECUTABLE) 83