llvm.org GIT mirror llvm / 7543ae5
[gn build] Add build file for clang/lib/FrontendTool Differential Revision: https://reviews.llvm.org/D55980 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349988 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 10 months ago
2 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
77 "//clang/lib/Driver",
88 "//clang/lib/Frontend",
99 "//clang/lib/Frontend/Rewrite",
10 "//clang/lib/FrontendTool",
1011 "//clang/lib/Index",
1112 "//clang/lib/Parse",
1213 "//clang/lib/Serialization",
0 import("//clang/lib/ARCMigrate/enable.gni")
1 import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
2
3 assert(clang_enable_static_analyzer || !clang_enable_arcmt,
4 "Cannot disable static analyzer while enabling ARCMT")
5
6 static_library("FrontendTool") {
7 output_name = "clangFrontendTool"
8 configs += [ "//llvm/utils/gn/build:clang_code" ]
9 deps = [
10 "//clang/include/clang/Config",
11 "//clang/lib/Basic",
12 "//clang/lib/CodeGen",
13 "//clang/lib/Driver",
14 "//clang/lib/Frontend",
15 "//clang/lib/Frontend/Rewrite",
16 "//llvm/lib/Option",
17 "//llvm/lib/Support",
18 ]
19 if (clang_enable_arcmt) {
20 deps += [ "//clang/lib/ARCMigrate" ]
21 }
22 if (clang_enable_static_analyzer) {
23 deps += [ "//clang/lib/StaticAnalyzer/Frontend" ]
24 }
25 sources = [
26 "ExecuteCompilerInvocation.cpp",
27 ]
28 }