1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_TBLGEN_VARS) 4 5TBLGEN_TABLES := \ 6 AttrList.inc \ 7 Attrs.inc \ 8 AttrParsedAttrList.inc \ 9 AttrVisitor.inc \ 10 CC1Options.inc \ 11 CommentCommandList.inc \ 12 CommentNodes.inc \ 13 DiagnosticASTKinds.inc \ 14 DiagnosticCommonKinds.inc \ 15 DiagnosticDriverKinds.inc \ 16 DiagnosticFrontendKinds.inc \ 17 DiagnosticLexKinds.inc \ 18 DiagnosticSemaKinds.inc \ 19 DeclNodes.inc \ 20 StmtNodes.inc 21 22clang_frontend_SRC_FILES := \ 23 ASTConsumers.cpp \ 24 ASTMerge.cpp \ 25 ASTUnit.cpp \ 26 CacheTokens.cpp \ 27 ChainedDiagnosticConsumer.cpp \ 28 ChainedIncludesSource.cpp \ 29 CodeGenOptions.cpp \ 30 CompilerInstance.cpp \ 31 CompilerInvocation.cpp \ 32 CreateInvocationFromCommandLine.cpp \ 33 DependencyFile.cpp \ 34 DependencyGraph.cpp \ 35 DiagnosticRenderer.cpp \ 36 FrontendAction.cpp \ 37 FrontendActions.cpp \ 38 FrontendOptions.cpp \ 39 HeaderIncludeGen.cpp \ 40 InitHeaderSearch.cpp \ 41 InitPreprocessor.cpp \ 42 LangStandards.cpp \ 43 LayoutOverrideSource.cpp \ 44 LogDiagnosticPrinter.cpp \ 45 ModuleDependencyCollector.cpp \ 46 MultiplexConsumer.cpp \ 47 PCHContainerOperations.cpp \ 48 PrintPreprocessedOutput.cpp \ 49 SerializedDiagnosticPrinter.cpp \ 50 SerializedDiagnosticReader.cpp \ 51 TestModuleFileExtension.cpp \ 52 TextDiagnosticBuffer.cpp \ 53 TextDiagnostic.cpp \ 54 TextDiagnosticPrinter.cpp \ 55 VerifyDiagnosticConsumer.cpp 56 57# For the host 58# ===================================================== 59include $(CLEAR_VARS) 60 61LOCAL_SRC_FILES := $(clang_frontend_SRC_FILES) 62LOCAL_MODULE:= libclangFrontend 63LOCAL_MODULE_TAGS:= optional 64 65include $(CLANG_HOST_BUILD_MK) 66include $(CLANG_TBLGEN_RULES_MK) 67include $(CLANG_VERSION_INC_MK) 68include $(LLVM_GEN_ATTRIBUTES_MK) 69include $(BUILD_HOST_STATIC_LIBRARY) 70 71# For the target 72# ===================================================== 73include $(CLEAR_VARS) 74 75LOCAL_SRC_FILES := $(clang_frontend_SRC_FILES) 76LOCAL_MODULE:= libclangFrontend 77LOCAL_MODULE_TAGS:= optional 78 79include $(CLANG_DEVICE_BUILD_MK) 80include $(CLANG_TBLGEN_RULES_MK) 81include $(CLANG_VERSION_INC_MK) 82include $(LLVM_GEN_ATTRIBUTES_MK) 83include $(BUILD_STATIC_LIBRARY) 84