168 lines · plain
1import("//clang/utils/TableGen/clang_tablegen.gni")2 3clang_tablegen("Opcodes") {4 visibility = [ ":AST" ]5 args = [ "-gen-clang-opcodes" ]6 td_file = "ByteCode/Opcodes.td"7}8 9clang_tablegen("AttrDocTable") {10 visibility = [ ":AST" ]11 args = [ "-gen-clang-attr-doc-table" ]12 td_file = "//clang/include/clang/Basic/Attr.td"13}14 15static_library("AST") {16 output_name = "clangAST"17 configs += [ "//llvm/utils/gn/build:clang_code" ]18 deps = [19 ":AttrDocTable",20 ":Opcodes",21 "//clang/include/clang/AST:AttrImpl",22 "//clang/include/clang/AST:AttrNodeTraverse",23 "//clang/include/clang/AST:AttrTextNodeDump",24 "//clang/include/clang/AST:CommentCommandInfo",25 "//clang/include/clang/AST:CommentHTMLNamedCharacterReferences",26 "//clang/include/clang/AST:CommentHTMLTags",27 "//clang/include/clang/AST:CommentHTMLTagsProperties",28 "//clang/include/clang/AST:DeclNodes",29 "//clang/lib/Basic",30 "//clang/lib/Lex",31 "//llvm/lib/BinaryFormat",32 "//llvm/lib/Frontend/HLSL",33 "//llvm/lib/Frontend/OpenMP",34 "//llvm/lib/Support",35 "//llvm/lib/TargetParser",36 ]37 38 # Generated files used in public headers should be in public_deps, the rest39 # in regular deps.40 public_deps = [41 "//clang/include/clang/AST:AbstractBasicReader",42 "//clang/include/clang/AST:AbstractBasicWriter",43 "//clang/include/clang/AST:AbstractTypeReader",44 "//clang/include/clang/AST:AbstractTypeWriter",45 "//clang/include/clang/AST:AttrVisitor",46 "//clang/include/clang/AST:Attrs",47 "//clang/include/clang/AST:CommentCommandList",48 "//clang/include/clang/AST:CommentNodes",49 "//clang/include/clang/AST:StmtNodes",50 "//clang/include/clang/AST:TypeNodes",51 ]52 sources = [53 "APValue.cpp",54 "ASTConcept.cpp",55 "ASTConsumer.cpp",56 "ASTContext.cpp",57 "ASTDiagnostic.cpp",58 "ASTDumper.cpp",59 "ASTImporter.cpp",60 "ASTImporterLookupTable.cpp",61 "ASTStructuralEquivalence.cpp",62 "ASTTypeTraits.cpp",63 "AttrDocTable.cpp",64 "AttrImpl.cpp",65 "Availability.cpp",66 "ByteCode/BitcastBuffer.cpp",67 "ByteCode/ByteCodeEmitter.cpp",68 "ByteCode/Compiler.cpp",69 "ByteCode/Context.cpp",70 "ByteCode/Descriptor.cpp",71 "ByteCode/Disasm.cpp",72 "ByteCode/DynamicAllocator.cpp",73 "ByteCode/EvalEmitter.cpp",74 "ByteCode/EvaluationResult.cpp",75 "ByteCode/Floating.cpp",76 "ByteCode/Function.cpp",77 "ByteCode/FunctionPointer.cpp",78 "ByteCode/Interp.cpp",79 "ByteCode/InterpBlock.cpp",80 "ByteCode/InterpBuiltin.cpp",81 "ByteCode/InterpBuiltinBitCast.cpp",82 "ByteCode/InterpFrame.cpp",83 "ByteCode/InterpShared.cpp",84 "ByteCode/InterpStack.cpp",85 "ByteCode/InterpState.cpp",86 "ByteCode/MemberPointer.cpp",87 "ByteCode/Pointer.cpp",88 "ByteCode/PrimType.cpp",89 "ByteCode/Program.cpp",90 "ByteCode/Record.cpp",91 "ByteCode/Source.cpp",92 "ByteCode/State.cpp",93 "CXXInheritance.cpp",94 "Comment.cpp",95 "CommentBriefParser.cpp",96 "CommentCommandTraits.cpp",97 "CommentLexer.cpp",98 "CommentParser.cpp",99 "CommentSema.cpp",100 "ComparisonCategories.cpp",101 "ComputeDependence.cpp",102 "DataCollection.cpp",103 "Decl.cpp",104 "DeclBase.cpp",105 "DeclCXX.cpp",106 "DeclFriend.cpp",107 "DeclGroup.cpp",108 "DeclObjC.cpp",109 "DeclOpenACC.cpp",110 "DeclOpenMP.cpp",111 "DeclPrinter.cpp",112 "DeclTemplate.cpp",113 "DeclarationName.cpp",114 "DynamicRecursiveASTVisitor.cpp",115 "Expr.cpp",116 "ExprCXX.cpp",117 "ExprClassification.cpp",118 "ExprConcepts.cpp",119 "ExprConstant.cpp",120 "ExprObjC.cpp",121 "ExternalASTMerger.cpp",122 "ExternalASTSource.cpp",123 "FormatString.cpp",124 "InferAlloc.cpp",125 "InheritViz.cpp",126 "ItaniumCXXABI.cpp",127 "ItaniumMangle.cpp",128 "JSONNodeDumper.cpp",129 "Mangle.cpp",130 "MicrosoftCXXABI.cpp",131 "MicrosoftMangle.cpp",132 "NSAPI.cpp",133 "NestedNameSpecifier.cpp",134 "ODRDiagsEmitter.cpp",135 "ODRHash.cpp",136 "OSLog.cpp",137 "OpenACCClause.cpp",138 "OpenMPClause.cpp",139 "ParentMap.cpp",140 "ParentMapContext.cpp",141 "PrintfFormatString.cpp",142 "QualTypeNames.cpp",143 "Randstruct.cpp",144 "RawCommentList.cpp",145 "RecordLayout.cpp",146 "RecordLayoutBuilder.cpp",147 "ScanfFormatString.cpp",148 "SelectorLocationsKind.cpp",149 "Stmt.cpp",150 "StmtCXX.cpp",151 "StmtIterator.cpp",152 "StmtObjC.cpp",153 "StmtOpenACC.cpp",154 "StmtOpenMP.cpp",155 "StmtPrinter.cpp",156 "StmtProfile.cpp",157 "StmtViz.cpp",158 "TemplateBase.cpp",159 "TemplateName.cpp",160 "TextNodeDumper.cpp",161 "Type.cpp",162 "TypeLoc.cpp",163 "TypePrinter.cpp",164 "VTTBuilder.cpp",165 "VTableBuilder.cpp",166 ]167}168