xref: /openbsd-src/gnu/llvm/llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn (revision 46035553bfdd96e63c94e32da0210227ec2e3cf1)
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    "DataCollection.cpp",
64    "Decl.cpp",
65    "DeclBase.cpp",
66    "DeclCXX.cpp",
67    "DeclFriend.cpp",
68    "DeclGroup.cpp",
69    "DeclObjC.cpp",
70    "DeclOpenMP.cpp",
71    "DeclPrinter.cpp",
72    "DeclTemplate.cpp",
73    "DeclarationName.cpp",
74    "Expr.cpp",
75    "ExprCXX.cpp",
76    "ExprClassification.cpp",
77    "ExprConcepts.cpp",
78    "ExprConstant.cpp",
79    "ExprObjC.cpp",
80    "ExternalASTMerger.cpp",
81    "ExternalASTSource.cpp",
82    "FormatString.cpp",
83    "InheritViz.cpp",
84    "Interp/Block.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/InterpFrame.cpp",
97    "Interp/InterpStack.cpp",
98    "Interp/InterpState.cpp",
99    "Interp/Pointer.cpp",
100    "Interp/PrimType.cpp",
101    "Interp/Program.cpp",
102    "Interp/Record.cpp",
103    "Interp/Source.cpp",
104    "Interp/State.cpp",
105    "ItaniumCXXABI.cpp",
106    "ItaniumMangle.cpp",
107    "JSONNodeDumper.cpp",
108    "Mangle.cpp",
109    "MicrosoftCXXABI.cpp",
110    "MicrosoftMangle.cpp",
111    "NSAPI.cpp",
112    "NestedNameSpecifier.cpp",
113    "ODRHash.cpp",
114    "OSLog.cpp",
115    "OpenMPClause.cpp",
116    "ParentMap.cpp",
117    "PrintfFormatString.cpp",
118    "QualTypeNames.cpp",
119    "RawCommentList.cpp",
120    "RecordLayout.cpp",
121    "RecordLayoutBuilder.cpp",
122    "ScanfFormatString.cpp",
123    "SelectorLocationsKind.cpp",
124    "Stmt.cpp",
125    "StmtCXX.cpp",
126    "StmtIterator.cpp",
127    "StmtObjC.cpp",
128    "StmtOpenMP.cpp",
129    "StmtPrinter.cpp",
130    "StmtProfile.cpp",
131    "StmtViz.cpp",
132    "TemplateBase.cpp",
133    "TemplateName.cpp",
134    "TextNodeDumper.cpp",
135    "Type.cpp",
136    "TypeLoc.cpp",
137    "TypePrinter.cpp",
138    "VTTBuilder.cpp",
139    "VTableBuilder.cpp",
140  ]
141}
142