Home | History | Annotate | Download | only in Frontend
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 include $(CLEAR_TBLGEN_VARS)
      4 
      5 TBLGEN_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 
     22 clang_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 # =====================================================
     59 include $(CLEAR_VARS)
     60 
     61 LOCAL_SRC_FILES := $(clang_frontend_SRC_FILES)
     62 LOCAL_MODULE:= libclangFrontend
     63 LOCAL_MODULE_TAGS:= optional
     64 
     65 include $(CLANG_HOST_BUILD_MK)
     66 include $(CLANG_TBLGEN_RULES_MK)
     67 include $(CLANG_VERSION_INC_MK)
     68 include $(LLVM_GEN_ATTRIBUTES_MK)
     69 include $(BUILD_HOST_STATIC_LIBRARY)
     70 
     71 # For the target
     72 # =====================================================
     73 include $(CLEAR_VARS)
     74 
     75 LOCAL_SRC_FILES := $(clang_frontend_SRC_FILES)
     76 LOCAL_MODULE:= libclangFrontend
     77 LOCAL_MODULE_TAGS:= optional
     78 
     79 include $(CLANG_DEVICE_BUILD_MK)
     80 include $(CLANG_TBLGEN_RULES_MK)
     81 include $(CLANG_VERSION_INC_MK)
     82 include $(LLVM_GEN_ATTRIBUTES_MK)
     83 include $(BUILD_STATIC_LIBRARY)
     84