llvm.org GIT mirror llvm / ffc144f
[clangd] Fix GN build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359527 91177308-0d34-0410-b5e6-96231b3b80d8 Vitaly Buka 5 months ago
6 changed file(s) with 90 addition(s) and 96 deletion(s). Raw diff Collapse all Expand all
0 import("//llvm/utils/unittest/unittest.gni")
1
2 unittest("ClangdTests") {
3 configs += [ "//llvm/utils/gn/build:clang_code" ]
4 deps = [
5 "//clang-tools-extra/clang-tidy",
6 "//clang-tools-extra/clangd",
7 "//clang-tools-extra/clangd:features",
8 "//clang-tools-extra/clangd/refactor/tweaks",
9 "//clang/lib/AST",
10 "//clang/lib/Basic",
11 "//clang/lib/Format",
12 "//clang/lib/Frontend",
13 "//clang/lib/Index",
14 "//clang/lib/Lex",
15 "//clang/lib/Sema",
16 "//clang/lib/Serialization",
17 "//clang/lib/Tooling",
18 "//clang/lib/Tooling/Core",
19 "//clang/lib/Tooling/Inclusions",
20 "//llvm/lib/Support",
21 "//llvm/lib/Testing/Support",
22 ]
23 include_dirs = [
24 "//clang-tools-extra/clangd",
25
26 # To pick up the generated inc files.
27 "$target_gen_dir/../../clangd/tool",
28 ]
29 sources = [
30 "Annotations.cpp",
31 "BackgroundIndexTests.cpp",
32 "CancellationTests.cpp",
33 "ClangdTests.cpp",
34 "ClangdUnitTests.cpp",
35 "CodeCompleteTests.cpp",
36 "CodeCompletionStringsTests.cpp",
37 "ContextTests.cpp",
38 "DexTests.cpp",
39 "DiagnosticsTests.cpp",
40 "DraftStoreTests.cpp",
41 "ExpectedTypeTest.cpp",
42 "FSTests.cpp",
43 "FileDistanceTests.cpp",
44 "FileIndexTests.cpp",
45 "FindSymbolsTests.cpp",
46 "FunctionTests.cpp",
47 "FuzzyMatchTests.cpp",
48 "GlobalCompilationDatabaseTests.cpp",
49 "HeadersTests.cpp",
50 "IndexActionTests.cpp",
51 "IndexTests.cpp",
52 "JSONTransportTests.cpp",
53 "PrintASTTests.cpp",
54 "QualityTests.cpp",
55 "RIFFTests.cpp",
56 "SelectionTests.cpp",
57 "SerializationTests.cpp",
58 "SourceCodeTests.cpp",
59 "SymbolCollectorTests.cpp",
60 "SymbolInfoTests.cpp",
61 "SyncAPI.cpp",
62 "TUSchedulerTests.cpp",
63 "TestFS.cpp",
64 "TestIndex.cpp",
65 "TestTU.cpp",
66 "ThreadingTests.cpp",
67 "TraceTests.cpp",
68 "TweakTests.cpp",
69 "TypeHierarchyTests.cpp",
70 "URITests.cpp",
71 "XRefsTests.cpp",
72 ]
73 }
0 import("//llvm/utils/unittest/unittest.gni")
1
2 unittest("ClangdXpcTests") {
3 configs += [ "//llvm/utils/gn/build:clang_code" ]
4 deps = [
5 "//clang-tools-extra/clangd",
6 "//clang-tools-extra/clangd/xpc:conversions",
7 "//llvm/lib/Support",
8 "//llvm/lib/Testing/Support",
9 ]
10 include_dirs = [ "//clang-tools-extra/clangd" ]
11 sources = [
12 "ConversionTests.cpp",
13 ]
14 }
3636 "LLVM_TOOLS_DIR=" + rebase_path("$root_out_dir/bin"),
3737 "PYTHON_EXECUTABLE=$python_path",
3838 ]
39
40 if (clangd_build_xpc) {
41 extra_values += [ "CLANGD_BUILD_XPC=1" ]
42 } else {
43 extra_values += [ "CLANGD_BUILD_XPC=0" ]
44 }
4539
4640 if (clang_enable_static_analyzer) {
4741 extra_values += [ "CLANG_ENABLE_STATIC_ANALYZER=1" ]
99 "clang-move:ClangMoveTests",
1010 "clang-query:ClangQueryTests",
1111 "clang-tidy:ClangTidyTests",
12 "clangd:ClangdTests",
12 "//clang-tools-extra/clangd/unittests:ClangdTests",
1313 ]
1414 if (clangd_build_xpc) {
1515 deps += [ "clangd/xpc:ClangdXpcTests" ]
+0
-74
utils/gn/secondary/clang-tools-extra/unittests/clangd/BUILD.gn less more
None import("//llvm/utils/unittest/unittest.gni")
1
2 unittest("ClangdTests") {
3 configs += [ "//llvm/utils/gn/build:clang_code" ]
4 deps = [
5 "//clang-tools-extra/clang-tidy",
6 "//clang-tools-extra/clangd",
7 "//clang-tools-extra/clangd:features",
8 "//clang-tools-extra/clangd/refactor/tweaks",
9 "//clang/lib/AST",
10 "//clang/lib/Basic",
11 "//clang/lib/Format",
12 "//clang/lib/Frontend",
13 "//clang/lib/Index",
14 "//clang/lib/Lex",
15 "//clang/lib/Sema",
16 "//clang/lib/Serialization",
17 "//clang/lib/Tooling",
18 "//clang/lib/Tooling/Core",
19 "//clang/lib/Tooling/Inclusions",
20 "//llvm/lib/Support",
21 "//llvm/lib/Testing/Support",
22 ]
23 include_dirs = [
24 "//clang-tools-extra/clangd",
25
26 # To pick up the generated inc files.
27 "$target_gen_dir/../../clangd/tool",
28 ]
29 sources = [
30 "Annotations.cpp",
31 "BackgroundIndexTests.cpp",
32 "CancellationTests.cpp",
33 "ClangdTests.cpp",
34 "ClangdUnitTests.cpp",
35 "CodeCompleteTests.cpp",
36 "CodeCompletionStringsTests.cpp",
37 "ContextTests.cpp",
38 "DexTests.cpp",
39 "DiagnosticsTests.cpp",
40 "DraftStoreTests.cpp",
41 "ExpectedTypeTest.cpp",
42 "FSTests.cpp",
43 "FileDistanceTests.cpp",
44 "FileIndexTests.cpp",
45 "FindSymbolsTests.cpp",
46 "FunctionTests.cpp",
47 "FuzzyMatchTests.cpp",
48 "GlobalCompilationDatabaseTests.cpp",
49 "HeadersTests.cpp",
50 "IndexActionTests.cpp",
51 "IndexTests.cpp",
52 "JSONTransportTests.cpp",
53 "PrintASTTests.cpp",
54 "QualityTests.cpp",
55 "RIFFTests.cpp",
56 "SelectionTests.cpp",
57 "SerializationTests.cpp",
58 "SourceCodeTests.cpp",
59 "SymbolCollectorTests.cpp",
60 "SymbolInfoTests.cpp",
61 "SyncAPI.cpp",
62 "TUSchedulerTests.cpp",
63 "TestFS.cpp",
64 "TestIndex.cpp",
65 "TestTU.cpp",
66 "ThreadingTests.cpp",
67 "TraceTests.cpp",
68 "TweakTests.cpp",
69 "TypeHierarchyTests.cpp",
70 "URITests.cpp",
71 "XRefsTests.cpp",
72 ]
73 }
+0
-15
utils/gn/secondary/clang-tools-extra/unittests/clangd/xpc/BUILD.gn less more
None import("//llvm/utils/unittest/unittest.gni")
1
2 unittest("ClangdXpcTests") {
3 configs += [ "//llvm/utils/gn/build:clang_code" ]
4 deps = [
5 "//clang-tools-extra/clangd",
6 "//clang-tools-extra/clangd/xpc:conversions",
7 "//llvm/lib/Support",
8 "//llvm/lib/Testing/Support",
9 ]
10 include_dirs = [ "//clang-tools-extra/clangd" ]
11 sources = [
12 "ConversionTests.cpp",
13 ]
14 }