llvm.org GIT mirror llvm / 832b3d8
[gn build] Add build files for clang/tools/{arcmt-test,clang-check,clang-func-mapping} Needed for check-clang. Differential Revision: https://reviews.llvm.org/D56056 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350026 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
4 changed file(s) with 60 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 import("//clang/lib/ARCMigrate/enable.gni")
1 import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
2
3 group("default") {
14 deps = [
25 ":clang",
1619 "//llvm/tools/llvm-symbolizer:symlinks",
1720 "//llvm/tools/llvm-undname",
1821 ]
22 if (clang_enable_arcmt) {
23 deps += [ "//clang/tools/arcmt-test" ]
24 }
25 if (clang_enable_static_analyzer) {
26 deps += [
27 "//clang/tools/clang-check",
28 "//clang/tools/clang-func-mapping",
29 ]
30 }
1931 testonly = true
2032 }
2133
0 executable("arcmt-test") {
1 configs += [ "//llvm/utils/gn/build:clang_code" ]
2 deps = [
3 "//clang/lib/ARCMigrate",
4 "//clang/lib/Basic",
5 "//clang/lib/Frontend",
6 "//clang/lib/Lex",
7 "//llvm/lib/Support",
8 ]
9 sources = [
10 "arcmt-test.cpp",
11 ]
12 }
0 executable("clang-check") {
1 configs += [ "//llvm/utils/gn/build:clang_code" ]
2 deps = [
3 "//clang/lib/AST",
4 "//clang/lib/Basic",
5 "//clang/lib/Driver",
6 "//clang/lib/Frontend",
7 "//clang/lib/Frontend/Rewrite",
8 "//clang/lib/StaticAnalyzer/Frontend",
9 "//clang/lib/Tooling",
10 "//llvm/lib/Option",
11 "//llvm/lib/Support",
12 "//llvm/lib/Target:TargetsToBuild",
13 ]
14 sources = [
15 "ClangCheck.cpp",
16 ]
17 }
0 executable("clang-func-mapping") {
1 configs += [ "//llvm/utils/gn/build:clang_code" ]
2 deps = [
3 "//clang/lib/AST",
4 "//clang/lib/Basic",
5 "//clang/lib/CrossTU",
6 "//clang/lib/Frontend",
7 "//clang/lib/Index",
8 "//clang/lib/Tooling",
9 "//llvm/lib/AsmParser",
10 "//llvm/lib/MC",
11 "//llvm/lib/Support",
12 ]
13 sources = [
14 "ClangFnMapGen.cpp",
15 ]
16 }