1 import("//clang/lib/ARCMigrate/enable.gni")
2 import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
4 assert(clang_enable_static_analyzer || !clang_enable_arcmt,
5 "Cannot disable static analyzer while enabling ARCMT")
7 static_library("FrontendTool") {
8 output_name = "clangFrontendTool"
9 configs += [ "//llvm/utils/gn/build:clang_code" ]
11 "//clang/include/clang/Config",
13 "//clang/lib/CodeGen",
15 "//clang/lib/Frontend",
16 "//clang/lib/Frontend/Rewrite",
20 if (clang_enable_arcmt) {
21 deps += [ "//clang/lib/ARCMigrate" ]
23 if (clang_enable_static_analyzer) {
24 deps += [ "//clang/lib/StaticAnalyzer/Frontend" ]
27 "ExecuteCompilerInvocation.cpp",