[MIPS GlobalISel] Select MSA vector generic and builtin add
[llvm-complete.git] / utils / gn / secondary / clang-tools-extra / clangd / BUILD.gn
blob5d4392cb3e7e3642b707c8f3a70684e8cb1d8a0a
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",
28     "//clang-tools-extra/clang-tidy:all-checks",
29     "//clang/lib/AST",
30     "//clang/lib/ASTMatchers",
31     "//clang/lib/Basic",
32     "//clang/lib/Driver",
33     "//clang/lib/Format",
34     "//clang/lib/Frontend",
35     "//clang/lib/Index",
36     "//clang/lib/Lex",
37     "//clang/lib/Sema",
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",
44     "//llvm/lib/Support",
45     "//llvm/lib/Target:AllTargetsInfos",
46     "//llvm/utils/gn/build/libs/atomic",
47     "//llvm/utils/gn/build/libs/pthread",
48   ]
49   include_dirs = [
50     ".",
52     # To pick up the generated inc files.
53     "$target_gen_dir/tool",
54   ]
55   sources = [
56     "AST.cpp",
57     "Cancellation.cpp",
58     "ClangdLSPServer.cpp",
59     "ClangdServer.cpp",
60     "CodeComplete.cpp",
61     "CodeCompletionStrings.cpp",
62     "Compiler.cpp",
63     "Context.cpp",
64     "Diagnostics.cpp",
65     "DraftStore.cpp",
66     "ExpectedTypes.cpp",
67     "FS.cpp",
68     "FSProvider.cpp",
69     "FileDistance.cpp",
70     "FindSymbols.cpp",
71     "FindTarget.cpp",
72     "Format.cpp",
73     "FormattedString.cpp",
74     "FuzzyMatch.cpp",
75     "GlobalCompilationDatabase.cpp",
76     "HeaderSourceSwitch.cpp",
77     "Headers.cpp",
78     "IncludeFixer.cpp",
79     "JSONTransport.cpp",
80     "Logger.cpp",
81     "ParsedAST.cpp",
82     "Preamble.cpp",
83     "Protocol.cpp",
84     "Quality.cpp",
85     "QueryDriverDatabase.cpp",
86     "RIFF.cpp",
87     "Selection.cpp",
88     "SemanticHighlighting.cpp",
89     "SemanticSelection.cpp",
90     "SourceCode.cpp",
91     "TUScheduler.cpp",
92     "Threading.cpp",
93     "Trace.cpp",
94     "URI.cpp",
95     "XRefs.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",
103     "index/Index.cpp",
104     "index/IndexAction.cpp",
105     "index/MemIndex.cpp",
106     "index/Merge.cpp",
107     "index/Ref.cpp",
108     "index/Relation.cpp",
109     "index/Serialization.cpp",
110     "index/Symbol.cpp",
111     "index/SymbolCollector.cpp",
112     "index/SymbolID.cpp",
113     "index/SymbolLocation.cpp",
114     "index/SymbolOrigin.cpp",
115     "index/YAMLSerialization.cpp",
116     "index/dex/Dex.cpp",
117     "index/dex/Iterator.cpp",
118     "index/dex/PostingList.cpp",
119     "index/dex/Trigram.cpp",
120     "refactor/Rename.cpp",
121     "refactor/Tweak.cpp",
122   ]