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",
28 "//clang-tools-extra/clang-tidy:all-checks",
30 "//clang/lib/ASTMatchers",
34 "//clang/lib/Frontend",
38 "//clang/lib/Serialization",
39 "//clang/lib/Tooling",
40 "//clang/lib/Tooling/Core",
41 "//clang/lib/Tooling/Inclusions",
42 "//clang/lib/Tooling/Refactoring",
43 "//clang/lib/Tooling/Syntax",
45 "//llvm/lib/Target:AllTargetsInfos",
46 "//llvm/utils/gn/build/libs/atomic",
47 "//llvm/utils/gn/build/libs/pthread",
52 # To pick up the generated inc files.
53 "$target_gen_dir/tool",
58 "ClangdLSPServer.cpp",
61 "CodeCompletionStrings.cpp",
73 "FormattedString.cpp",
75 "GlobalCompilationDatabase.cpp",
76 "HeaderSourceSwitch.cpp",
85 "QueryDriverDatabase.cpp",
88 "SemanticHighlighting.cpp",
89 "SemanticSelection.cpp",
96 "index/Background.cpp",
97 "index/BackgroundIndexLoader.cpp",
98 "index/BackgroundIndexStorage.cpp",
99 "index/BackgroundQueue.cpp",
100 "index/BackgroundRebuild.cpp",
101 "index/CanonicalIncludes.cpp",
102 "index/FileIndex.cpp",
104 "index/IndexAction.cpp",
105 "index/MemIndex.cpp",
108 "index/Relation.cpp",
109 "index/Serialization.cpp",
111 "index/SymbolCollector.cpp",
112 "index/SymbolID.cpp",
113 "index/SymbolLocation.cpp",
114 "index/SymbolOrigin.cpp",
115 "index/YAMLSerialization.cpp",
117 "index/dex/Iterator.cpp",
118 "index/dex/PostingList.cpp",
119 "index/dex/Trigram.cpp",
120 "refactor/Rename.cpp",
121 "refactor/Tweak.cpp",