1 import("//clang-tools-extra/clangd/xpc/enable.gni")
2 import("//llvm/utils/gn/build/write_cmake_config.gni")
4 config("features_config") {
5 # To pick up the generated inc files.
6 include_dirs = [ target_gen_dir ]
7 visibility = [ ":features" ]
10 write_cmake_config("features") {
11 input = "Features.inc.in"
12 output = "$target_gen_dir/Features.inc"
14 if (clangd_build_xpc) {
15 values += [ "CLANGD_BUILD_XPC=1" ]
17 values += [ "CLANGD_BUILD_XPC=0" ]
19 public_configs = [ ":features_config" ]
22 static_library("clangd") {
23 output_name = "clangDaemon"
24 configs += [ "//llvm/utils/gn/build:clang_code" ]
27 "//clang-tools-extra/clang-tidy/abseil",
28 "//clang-tools-extra/clang-tidy/android",
29 "//clang-tools-extra/clang-tidy/boost",
30 "//clang-tools-extra/clang-tidy/bugprone",
31 "//clang-tools-extra/clang-tidy/cert",
32 "//clang-tools-extra/clang-tidy/cppcoreguidelines",
33 "//clang-tools-extra/clang-tidy/fuchsia",
34 "//clang-tools-extra/clang-tidy/google",
35 "//clang-tools-extra/clang-tidy/hicpp",
36 "//clang-tools-extra/clang-tidy/linuxkernel",
37 "//clang-tools-extra/clang-tidy/llvm",
38 "//clang-tools-extra/clang-tidy/misc",
39 "//clang-tools-extra/clang-tidy/modernize",
40 "//clang-tools-extra/clang-tidy/objc",
41 "//clang-tools-extra/clang-tidy/openmp",
42 "//clang-tools-extra/clang-tidy/performance",
43 "//clang-tools-extra/clang-tidy/portability",
44 "//clang-tools-extra/clang-tidy/readability",
45 "//clang-tools-extra/clang-tidy/zircon",
47 "//clang/lib/ASTMatchers",
51 "//clang/lib/Frontend",
55 "//clang/lib/Serialization",
56 "//clang/lib/Tooling",
57 "//clang/lib/Tooling/Core",
58 "//clang/lib/Tooling/Inclusions",
59 "//clang/lib/Tooling/Refactoring",
60 "//clang/lib/Tooling/Syntax",
62 "//llvm/lib/Target:AllTargetsInfos",
63 "//llvm/utils/gn/build/libs/atomic",
64 "//llvm/utils/gn/build/libs/pthread",
69 # To pick up the generated inc files.
70 "$target_gen_dir/tool",
75 "ClangdLSPServer.cpp",
78 "CodeCompletionStrings.cpp",
90 "FormattedString.cpp",
92 "GlobalCompilationDatabase.cpp",
101 "QueryDriverDatabase.cpp",
104 "SemanticHighlighting.cpp",
105 "SemanticSelection.cpp",
112 "index/Background.cpp",
113 "index/BackgroundIndexLoader.cpp",
114 "index/BackgroundIndexStorage.cpp",
115 "index/BackgroundQueue.cpp",
116 "index/BackgroundRebuild.cpp",
117 "index/CanonicalIncludes.cpp",
118 "index/FileIndex.cpp",
120 "index/IndexAction.cpp",
121 "index/MemIndex.cpp",
124 "index/Relation.cpp",
125 "index/Serialization.cpp",
127 "index/SymbolCollector.cpp",
128 "index/SymbolID.cpp",
129 "index/SymbolLocation.cpp",
130 "index/SymbolOrigin.cpp",
131 "index/YAMLSerialization.cpp",
133 "index/dex/Iterator.cpp",
134 "index/dex/PostingList.cpp",
135 "index/dex/Trigram.cpp",
136 "refactor/Rename.cpp",
137 "refactor/Tweak.cpp",