[yaml2obj/obj2yaml] - Add support for .stack_sizes sections.
[llvm-complete.git] / utils / gn / secondary / clang-tools-extra / clangd / BUILD.gn
blob0f4e8dae7134c603e362824f2c2abcd8984df476
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"
13   values = []
14   if (clangd_build_xpc) {
15     values += [ "CLANGD_BUILD_XPC=1" ]
16   } else {
17     values += [ "CLANGD_BUILD_XPC=0" ]
18   }
19   public_configs = [ ":features_config" ]
22 static_library("clangd") {
23   output_name = "clangDaemon"
24   configs += [ "//llvm/utils/gn/build:clang_code" ]
25   deps = [
26     ":features",
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",
46     "//clang/lib/AST",
47     "//clang/lib/ASTMatchers",
48     "//clang/lib/Basic",
49     "//clang/lib/Driver",
50     "//clang/lib/Format",
51     "//clang/lib/Frontend",
52     "//clang/lib/Index",
53     "//clang/lib/Lex",
54     "//clang/lib/Sema",
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",
61     "//llvm/lib/Support",
62     "//llvm/lib/Target:AllTargetsInfos",
63     "//llvm/utils/gn/build/libs/atomic",
64     "//llvm/utils/gn/build/libs/pthread",
65   ]
66   include_dirs = [
67     ".",
69     # To pick up the generated inc files.
70     "$target_gen_dir/tool",
71   ]
72   sources = [
73     "AST.cpp",
74     "Cancellation.cpp",
75     "ClangdLSPServer.cpp",
76     "ClangdServer.cpp",
77     "CodeComplete.cpp",
78     "CodeCompletionStrings.cpp",
79     "Compiler.cpp",
80     "Context.cpp",
81     "Diagnostics.cpp",
82     "DraftStore.cpp",
83     "ExpectedTypes.cpp",
84     "FS.cpp",
85     "FSProvider.cpp",
86     "FileDistance.cpp",
87     "FindSymbols.cpp",
88     "FindTarget.cpp",
89     "Format.cpp",
90     "FormattedString.cpp",
91     "FuzzyMatch.cpp",
92     "GlobalCompilationDatabase.cpp",
93     "Headers.cpp",
94     "IncludeFixer.cpp",
95     "JSONTransport.cpp",
96     "Logger.cpp",
97     "ParsedAST.cpp",
98     "Preamble.cpp",
99     "Protocol.cpp",
100     "Quality.cpp",
101     "QueryDriverDatabase.cpp",
102     "RIFF.cpp",
103     "Selection.cpp",
104     "SemanticHighlighting.cpp",
105     "SemanticSelection.cpp",
106     "SourceCode.cpp",
107     "TUScheduler.cpp",
108     "Threading.cpp",
109     "Trace.cpp",
110     "URI.cpp",
111     "XRefs.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",
119     "index/Index.cpp",
120     "index/IndexAction.cpp",
121     "index/MemIndex.cpp",
122     "index/Merge.cpp",
123     "index/Ref.cpp",
124     "index/Relation.cpp",
125     "index/Serialization.cpp",
126     "index/Symbol.cpp",
127     "index/SymbolCollector.cpp",
128     "index/SymbolID.cpp",
129     "index/SymbolLocation.cpp",
130     "index/SymbolOrigin.cpp",
131     "index/YAMLSerialization.cpp",
132     "index/dex/Dex.cpp",
133     "index/dex/Iterator.cpp",
134     "index/dex/PostingList.cpp",
135     "index/dex/Trigram.cpp",
136     "refactor/Rename.cpp",
137     "refactor/Tweak.cpp",
138   ]