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