Debian Codegraph @

llvm/utils/gn/secondary/clang/lib/AST/BUILD.gn

raw
1 import("//clang/utils/TableGen/clang_tablegen.gni")
2
3 clang_tablegen("Opcodes") {
4 visibility = [ ":AST" ]
5 args = [ "-gen-clang-opcodes" ]
6 td_file = "ByteCode/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/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 rest
39 # 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/InitMap.cpp",
79 "ByteCode/Interp.cpp",
80 "ByteCode/InterpBlock.cpp",
81 "ByteCode/InterpBuiltin.cpp",
82 "ByteCode/InterpBuiltinBitCast.cpp",
83 "ByteCode/InterpFrame.cpp",
84 "ByteCode/InterpShared.cpp",
85 "ByteCode/InterpStack.cpp",
86 "ByteCode/InterpState.cpp",
87 "ByteCode/MemberPointer.cpp",
88 "ByteCode/Pointer.cpp",
89 "ByteCode/PrimType.cpp",
90 "ByteCode/Program.cpp",
91 "ByteCode/Record.cpp",
92 "ByteCode/Source.cpp",
93 "ByteCode/State.cpp",
94 "CXXInheritance.cpp",
95 "Comment.cpp",
96 "CommentBriefParser.cpp",
97 "CommentCommandTraits.cpp",
98 "CommentLexer.cpp",
99 "CommentParser.cpp",
100 "CommentSema.cpp",
101 "ComparisonCategories.cpp",
102 "ComputeDependence.cpp",
103 "DataCollection.cpp",
104 "Decl.cpp",
105 "DeclBase.cpp",
106 "DeclCXX.cpp",
107 "DeclFriend.cpp",
108 "DeclGroup.cpp",
109 "DeclObjC.cpp",
110 "DeclOpenACC.cpp",
111 "DeclOpenMP.cpp",
112 "DeclPrinter.cpp",
113 "DeclTemplate.cpp",
114 "DeclarationName.cpp",
115 "DynamicRecursiveASTVisitor.cpp",
116 "Expr.cpp",
117 "ExprCXX.cpp",
118 "ExprClassification.cpp",
119 "ExprConcepts.cpp",
120 "ExprConstant.cpp",
121 "ExprObjC.cpp",
122 "ExternalASTMerger.cpp",
123 "ExternalASTSource.cpp",
124 "FormatString.cpp",
125 "InferAlloc.cpp",
126 "InheritViz.cpp",
127 "ItaniumCXXABI.cpp",
128 "ItaniumMangle.cpp",
129 "JSONNodeDumper.cpp",
130 "Mangle.cpp",
131 "MicrosoftCXXABI.cpp",
132 "MicrosoftMangle.cpp",
133 "NSAPI.cpp",
134 "NestedNameSpecifier.cpp",
135 "ODRDiagsEmitter.cpp",
136 "ODRHash.cpp",
137 "OSLog.cpp",
138 "OpenACCClause.cpp",
139 "OpenMPClause.cpp",
140 "ParentMap.cpp",
141 "ParentMapContext.cpp",
142 "PrintfFormatString.cpp",
143 "QualTypeNames.cpp",
144 "Randstruct.cpp",
145 "RawCommentList.cpp",
146 "RecordLayout.cpp",
147 "RecordLayoutBuilder.cpp",
148 "ScanfFormatString.cpp",
149 "SelectorLocationsKind.cpp",
150 "Stmt.cpp",
151 "StmtCXX.cpp",
152 "StmtIterator.cpp",
153 "StmtObjC.cpp",
154 "StmtOpenACC.cpp",
155 "StmtOpenMP.cpp",
156 "StmtPrinter.cpp",
157 "StmtProfile.cpp",
158 "StmtViz.cpp",
159 "TemplateBase.cpp",
160 "TemplateName.cpp",
161 "TextNodeDumper.cpp",
162 "Type.cpp",
163 "TypeLoc.cpp",
164 "TypePrinter.cpp",
165 "VTTBuilder.cpp",
166 "VTableBuilder.cpp",
167 ]
168 }