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