[llvm] aa545dc - [gn build] (manually) port ad97ccf6b26a

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 08:51:30 PDT 2020


Author: Nico Weber
Date: 2020-04-29T11:51:22-04:00
New Revision: aa545dcec1a18883d66eddbb44202686194a0e70

URL: https://github.com/llvm/llvm-project/commit/aa545dcec1a18883d66eddbb44202686194a0e70
DIFF: https://github.com/llvm/llvm-project/commit/aa545dcec1a18883d66eddbb44202686194a0e70.diff

LOG: [gn build] (manually) port ad97ccf6b26a

Added: 
    llvm/utils/gn/secondary/clang-tools-extra/clangd/support/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
    llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/BUILD.gn
    llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/unimplemented/BUILD.gn
    llvm/utils/gn/secondary/clang-tools-extra/clangd/refactor/tweaks/BUILD.gn
    llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
    llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
    llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn
    llvm/utils/gn/secondary/clang/tools/scan-build/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
index b0f6d7f6405b..7d8b8693e72d 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
@@ -28,6 +28,7 @@ static_library("clangd") {
     ":features",
     "//clang-tools-extra/clang-tidy",
     "//clang-tools-extra/clang-tidy:all-checks",
+    "//clang-tools-extra/clangd/support",
     "//clang/lib/AST",
     "//clang/lib/ASTMatchers",
     "//clang/lib/Basic",
@@ -45,7 +46,6 @@ static_library("clangd") {
     "//clang/lib/Tooling/Syntax",
     "//llvm/lib/Support",
     "//llvm/lib/Target:AllTargetsInfos",
-    "//llvm/utils/gn/build/libs/atomic",
     "//llvm/utils/gn/build/libs/pthread",
   ]
   include_dirs = [
@@ -56,7 +56,6 @@ static_library("clangd") {
   ]
   sources = [
     "AST.cpp",
-    "Cancellation.cpp",
     "ClangdLSPServer.cpp",
     "ClangdServer.cpp",
     "CodeComplete.cpp",
@@ -64,12 +63,10 @@ static_library("clangd") {
     "CollectMacros.cpp",
     "CompileCommands.cpp",
     "Compiler.cpp",
-    "Context.cpp",
     "Diagnostics.cpp",
     "DraftStore.cpp",
     "ExpectedTypes.cpp",
     "FS.cpp",
-    "FSProvider.cpp",
     "FileDistance.cpp",
     "FindSymbols.cpp",
     "FindTarget.cpp",
@@ -82,7 +79,6 @@ static_library("clangd") {
     "Hover.cpp",
     "IncludeFixer.cpp",
     "JSONTransport.cpp",
-    "Logger.cpp",
     "ParsedAST.cpp",
     "PathMapping.cpp",
     "Preamble.cpp",
@@ -93,11 +89,8 @@ static_library("clangd") {
     "Selection.cpp",
     "SemanticHighlighting.cpp",
     "SemanticSelection.cpp",
-    "Shutdown.cpp",
     "SourceCode.cpp",
     "TUScheduler.cpp",
-    "Threading.cpp",
-    "Trace.cpp",
     "URI.cpp",
     "XRefs.cpp",
     "index/Background.cpp",

diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/BUILD.gn
index c5e646b95435..de3c8f8b395b 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/BUILD.gn
@@ -2,6 +2,7 @@ source_set("remote") {
   configs += [ "//llvm/utils/gn/build:clang_code" ]
   deps = [
     "//clang-tools-extra/clangd",
+    "//clang-tools-extra/clangd/support",
     "//llvm/lib/Support",
   ]
   include_dirs = [ "../.." ]

diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/unimplemented/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/unimplemented/BUILD.gn
index 2d75d373c84b..3343fc9c315b 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/unimplemented/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/index/remote/unimplemented/BUILD.gn
@@ -2,6 +2,7 @@ source_set("unimplemented") {
   configs += [ "//llvm/utils/gn/build:clang_code" ]
   deps = [
     "//clang-tools-extra/clangd",
+    "//clang-tools-extra/clangd/support",
     "//llvm/lib/Support",
   ]
   include_dirs = [ "../../.." ]

diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/refactor/tweaks/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/refactor/tweaks/BUILD.gn
index 687b8720cc3e..aa0a63f1a9ed 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/refactor/tweaks/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/refactor/tweaks/BUILD.gn
@@ -6,6 +6,7 @@ source_set("tweaks") {
   configs += [ "//llvm/utils/gn/build:clang_code" ]
   deps = [
     "//clang-tools-extra/clangd",
+    "//clang-tools-extra/clangd/support",
     "//clang/lib/AST",
     "//clang/lib/Tooling/Core",
     "//llvm/lib/Support",

diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/support/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/support/BUILD.gn
new file mode 100644
index 000000000000..e527c6d194d3
--- /dev/null
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/support/BUILD.gn
@@ -0,0 +1,20 @@
+# clangd/support contains low-level support libraries that do not depend
+# on clang either programmatically or conceptually.
+static_library("support") {
+  output_name = "clangdSupport"
+  configs += [ "//llvm/utils/gn/build:clang_code" ]
+  deps = [
+    "//llvm/lib/Support",
+    "//llvm/utils/gn/build/libs/atomic",
+  ]
+  include_dirs = [ ".." ]
+  sources = [
+    "Cancellation.cpp",
+    "Context.cpp",
+    "FSProvider.cpp",
+    "Logger.cpp",
+    "Shutdown.cpp",
+    "Threading.cpp",
+    "Trace.cpp",
+  ]
+}

diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
index 4dc4c278ebcd..540a8a3642c4 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/test/BUILD.gn
@@ -21,9 +21,8 @@ write_lit_config("lit_site_cfg") {
   output = clangd_lit_site_cfg_file
 
   extra_values = [
-    "CMAKE_CURRENT_BINARY_DIR=" +
-        rebase_path(get_label_info("//clang-tools-extra/clangd/test",
-                                   "target_out_dir")),
+    "CMAKE_CURRENT_BINARY_DIR=" + rebase_path(
+            get_label_info("//clang-tools-extra/clangd/test", "target_out_dir")),
     "CMAKE_CURRENT_SOURCE_DIR=" +
         rebase_path("//clang-tools-extra/clangd/test"),
 

diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
index e334a4320b44..6b9e4f7c45da 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn
@@ -32,7 +32,6 @@ unittest("ClangdTests") {
     "ASTTests.cpp",
     "Annotations.cpp",
     "BackgroundIndexTests.cpp",
-    "CancellationTests.cpp",
     "CanonicalIncludesTests.cpp",
     "ClangdLSPServerTests.cpp",
     "ClangdTests.cpp",
@@ -40,7 +39,6 @@ unittest("ClangdTests") {
     "CodeCompletionStringsTests.cpp",
     "CollectMacrosTests.cpp",
     "CompileCommandsTests.cpp",
-    "ContextTests.cpp",
     "DexTests.cpp",
     "DiagnosticsTests.cpp",
     "DraftStoreTests.cpp",
@@ -52,7 +50,6 @@ unittest("ClangdTests") {
     "FindTargetTests.cpp",
     "FormatTests.cpp",
     "FormattedStringTests.cpp",
-    "FunctionTests.cpp",
     "FuzzyMatchTests.cpp",
     "GlobalCompilationDatabaseTests.cpp",
     "HeaderSourceSwitchTests.cpp",
@@ -81,12 +78,15 @@ unittest("ClangdTests") {
     "TestFS.cpp",
     "TestIndex.cpp",
     "TestTU.cpp",
-    "ThreadingTests.cpp",
-    "TraceTests.cpp",
     "TweakTesting.cpp",
     "TweakTests.cpp",
     "TypeHierarchyTests.cpp",
     "URITests.cpp",
     "XRefsTests.cpp",
+    "support/CancellationTests.cpp",
+    "support/ContextTests.cpp",
+    "support/FunctionTests.cpp",
+    "support/ThreadingTests.cpp",
+    "support/TraceTests.cpp",
   ]
 }

diff  --git a/llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn b/llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn
index 79b9c238f291..e15340ec990a 100644
--- a/llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn
@@ -3,6 +3,7 @@ static_library("conversions") {
   configs += [ "//llvm/utils/gn/build:clang_code" ]
   deps = [
     "//clang-tools-extra/clangd",
+    "//clang-tools-extra/clangd/support",
     "//llvm/lib/Support",
   ]
   include_dirs = [ ".." ]
@@ -18,6 +19,7 @@ static_library("transport") {
   deps = [
     ":conversions",
     "//clang-tools-extra/clangd",
+    "//clang-tools-extra/clangd/support",
     "//llvm/lib/Support",
   ]
   include_dirs = [ ".." ]

diff  --git a/llvm/utils/gn/secondary/clang/tools/scan-build/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/scan-build/BUILD.gn
index df65d461b741..a4c52089a87b 100644
--- a/llvm/utils/gn/secondary/clang/tools/scan-build/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/scan-build/BUILD.gn
@@ -19,13 +19,13 @@ copy("bin") {
 
 copy("libexec") {
   sources = [
-    "libexec/ccc-analyzer",
     "libexec/c++-analyzer",
+    "libexec/ccc-analyzer",
   ]
   if (host_os == "win") {
     sources += [
-      "libexec/ccc-analyzer.bat",
       "libexec/c++-analyzer.bat",
+      "libexec/ccc-analyzer.bat",
     ]
   }
   outputs = [ "$root_build_dir/libexec/{{source_file_part}}" ]
@@ -38,8 +38,8 @@ copy("man") {
 
 copy("share") {
   sources = [
-    "share/scan-build/sorttable.js",
     "share/scan-build/scanview.css",
+    "share/scan-build/sorttable.js",
   ]
   outputs = [ "$root_build_dir/share/scan-build/{{source_file_part}}" ]
 }


        


More information about the llvm-commits mailing list