1import("//clang/lib/ARCMigrate/enable.gni") 2import("//clang/lib/StaticAnalyzer/Frontend/enable.gni") 3 4assert(clang_enable_static_analyzer || !clang_enable_arcmt, 5 "Cannot disable static analyzer while enabling ARCMT") 6 7static_library("FrontendTool") { 8 output_name = "clangFrontendTool" 9 configs += [ "//llvm/utils/gn/build:clang_code" ] 10 deps = [ 11 "//clang/include/clang/Config", 12 "//clang/lib/Basic", 13 "//clang/lib/CodeGen", 14 "//clang/lib/Driver", 15 "//clang/lib/Frontend", 16 "//clang/lib/Frontend/Rewrite", 17 "//llvm/lib/Option", 18 "//llvm/lib/Support", 19 ] 20 if (clang_enable_arcmt) { 21 deps += [ "//clang/lib/ARCMigrate" ] 22 } 23 if (clang_enable_static_analyzer) { 24 deps += [ "//clang/lib/StaticAnalyzer/Frontend" ] 25 } 26 sources = [ "ExecuteCompilerInvocation.cpp" ] 27} 28