llvm.org GIT mirror llvm / 0a016b3
[gn build] Add build files for clang/lib/{Frontend,Frontend/Rewrite,Serialization} Differential Revision: https://reviews.llvm.org/D55930 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349833 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
5 changed file(s) with 131 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 group("default") {
11 deps = [
22 "//clang/lib/Driver",
3 "//clang/lib/Frontend",
4 "//clang/lib/Frontend/Rewrite",
35 "//clang/lib/Parse",
6 "//clang/lib/Serialization",
47 "//clang/tools/clang-format",
58 "//lld/test",
69 "//llvm/tools/llvm-undname",
0 import("//clang/utils/TableGen/clang_tablegen.gni")
1
2 clang_tablegen("AttrPCHRead") {
3 args = [
4 "-gen-clang-attr-pch-read",
5 "-I",
6 rebase_path("../..", root_out_dir),
7 ]
8 td_file = "../Basic/Attr.td"
9 }
10
11 clang_tablegen("AttrPCHWrite") {
12 args = [
13 "-gen-clang-attr-pch-write",
14 "-I",
15 rebase_path("../..", root_out_dir),
16 ]
17 td_file = "../Basic/Attr.td"
18 }
0 static_library("Frontend") {
1 output_name = "clangFrontend"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/include/clang/Config",
5 "//clang/lib/AST",
6 "//clang/lib/Basic",
7 "//clang/lib/Driver",
8 "//clang/lib/Edit",
9 "//clang/lib/Lex",
10 "//clang/lib/Parse",
11 "//clang/lib/Sema",
12 "//clang/lib/Serialization",
13 "//llvm/include/llvm/Config:llvm-config",
14 "//llvm/lib/Bitcode/Reader",
15 "//llvm/lib/Option",
16 "//llvm/lib/ProfileData",
17 "//llvm/lib/Support",
18 ]
19 sources = [
20 "ASTConsumers.cpp",
21 "ASTMerge.cpp",
22 "ASTUnit.cpp",
23 "ChainedDiagnosticConsumer.cpp",
24 "ChainedIncludesSource.cpp",
25 "CompilerInstance.cpp",
26 "CompilerInvocation.cpp",
27 "CreateInvocationFromCommandLine.cpp",
28 "DependencyFile.cpp",
29 "DependencyGraph.cpp",
30 "DiagnosticRenderer.cpp",
31 "FrontendAction.cpp",
32 "FrontendActions.cpp",
33 "FrontendOptions.cpp",
34 "FrontendTiming.cpp",
35 "HeaderIncludeGen.cpp",
36 "InitHeaderSearch.cpp",
37 "InitPreprocessor.cpp",
38 "LangStandards.cpp",
39 "LayoutOverrideSource.cpp",
40 "LogDiagnosticPrinter.cpp",
41 "ModuleDependencyCollector.cpp",
42 "MultiplexConsumer.cpp",
43 "PrecompiledPreamble.cpp",
44 "PrintPreprocessedOutput.cpp",
45 "SerializedDiagnosticPrinter.cpp",
46 "SerializedDiagnosticReader.cpp",
47 "TestModuleFileExtension.cpp",
48 "TextDiagnostic.cpp",
49 "TextDiagnosticBuffer.cpp",
50 "TextDiagnosticPrinter.cpp",
51 "VerifyDiagnosticConsumer.cpp",
52 ]
53 }
0 static_library("Rewrite") {
1 output_name = "clangRewriteFrontend"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/lib/AST",
5 "//clang/lib/Basic",
6 "//clang/lib/Edit",
7 "//clang/lib/Frontend",
8 "//clang/lib/Lex",
9 "//clang/lib/Rewrite",
10 "//clang/lib/Serialization",
11 "//llvm/lib/Support",
12 ]
13 sources = [
14 "FixItRewriter.cpp",
15 "FrontendActions.cpp",
16 "HTMLPrint.cpp",
17 "InclusionRewriter.cpp",
18 "RewriteMacros.cpp",
19 "RewriteModernObjC.cpp",
20 "RewriteObjC.cpp",
21 "RewriteTest.cpp",
22 ]
23 }
0 static_library("Serialization") {
1 output_name = "clangSerialization"
2 configs += [ "//llvm/utils/gn/build:clang_code" ]
3 deps = [
4 "//clang/include/clang/Serialization:AttrPCHRead",
5 "//clang/include/clang/Serialization:AttrPCHWrite",
6 "//clang/lib/AST",
7 "//clang/lib/Basic",
8 "//clang/lib/Lex",
9 "//clang/lib/Sema",
10 "//llvm/lib/Bitcode/Reader",
11 "//llvm/lib/Support",
12 ]
13 sources = [
14 "ASTCommon.cpp",
15 "ASTCommon.h",
16 "ASTReader.cpp",
17 "ASTReaderDecl.cpp",
18 "ASTReaderInternals.h",
19 "ASTReaderStmt.cpp",
20 "ASTWriter.cpp",
21 "ASTWriterDecl.cpp",
22 "ASTWriterStmt.cpp",
23 "GeneratePCH.cpp",
24 "GlobalModuleIndex.cpp",
25 "Module.cpp",
26 "ModuleFileExtension.cpp",
27 "ModuleManager.cpp",
28 "PCHContainerOperations.cpp",
29 ]
30 }