gn build: Follow-up to r364491 "[GN] Update build files"
authorNico Weber <nicolasweber@gmx.de>
Thu, 27 Jun 2019 06:08:57 +0000 (06:08 +0000)
committerNico Weber <nicolasweber@gmx.de>
Thu, 27 Jun 2019 06:08:57 +0000 (06:08 +0000)
- Merge r364427 (GSYM lib) more: It was missing the new unit test
  (as pointed out by llvm/utils/gn/build/sync_source_lists_from_cmake.py),
  and it had some superfluous deps not present in the cmake build.

- Merge r364474 (clang DependencyScanning lib) more: The deps didn't
  quite match cmake.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364501 91177308-0d34-0410-b5e6-96231b3b80d8

utils/gn/secondary/clang/lib/Tooling/DependencyScanning/BUILD.gn
utils/gn/secondary/llvm/lib/DebugInfo/GSYM/BUILD.gn
utils/gn/secondary/llvm/test/BUILD.gn
utils/gn/secondary/llvm/unittests/BUILD.gn
utils/gn/secondary/llvm/unittests/DebugInfo/GSYM/BUILD.gn [new file with mode: 0644]

index 8f983fcbaedcf399f73f2331ef067112c5a0612e..572d0d66eee811803a115d4551903b8fb67f09f3 100644 (file)
@@ -11,6 +11,7 @@ static_library("DependencyScanning") {
     "//clang/lib/Parse",
     "//clang/lib/Serialization",
     "//clang/lib/Tooling",
+    "//llvm/lib/IR",
     "//llvm/lib/Support",
   ]
   sources = [
index d79c0a7a30ea5bc0549d42992c6517e72b464ba7..48b70bd422edbcdb857c78221fac9a682f7e233b 100644 (file)
@@ -1,9 +1,6 @@
 static_library("GSYM") {
   output_name = "LLVMDebugInfoGSYM"
   deps = [
-    "//llvm/lib/BinaryFormat",
-    "//llvm/lib/MC",
-    "//llvm/lib/Object",
     "//llvm/lib/Support",
   ]
   sources = [
index 961b7c534d486591c1c0c5edabf893725ae6da02..7c6a31636ad0dd394a0c7cf8bfd7b8378a4d0757 100644 (file)
@@ -191,7 +191,6 @@ group("test") {
     # dependencies to make sure the libaries exist on disk when llvm-config's
     # lit tests run.
     "//llvm/lib/LineEditor",
-    "//llvm/lib/DebugInfo/GSYM",
     "//llvm/lib/Testing/Support",
     "//llvm/tools/bugpoint",
     "//llvm/tools/dsymutil",
index 0fd52e5e776996c83db382bc79539971db6c2321..ca38e56a14c33a697e027771a9f56a9cb254a343 100644 (file)
@@ -11,6 +11,7 @@ group("unittests") {
     "CodeGen/GlobalISel:GlobalISelTests",
     "DebugInfo/CodeView:DebugInfoCodeViewTests",
     "DebugInfo/DWARF:DebugInfoDWARFTests",
+    "DebugInfo/GSYM:DebugInfoGSYMTests",
     "DebugInfo/MSF:DebugInfoMSFTests",
     "DebugInfo/PDB:DebugInfoPDBTests",
     "Demangle:DemangleTests",
diff --git a/utils/gn/secondary/llvm/unittests/DebugInfo/GSYM/BUILD.gn b/utils/gn/secondary/llvm/unittests/DebugInfo/GSYM/BUILD.gn
new file mode 100644 (file)
index 0000000..a5e13a4
--- /dev/null
@@ -0,0 +1,17 @@
+import("//llvm/utils/unittest/unittest.gni")
+
+unittest("DebugInfoGSYMTests") {
+  deps = [
+    "//llvm/lib/CodeGen/AsmPrinter",
+    "//llvm/lib/DebugInfo/GSYM",
+    "//llvm/lib/MC",
+    "//llvm/lib/Object",
+    "//llvm/lib/ObjectYAML",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target:TargetsToBuild",
+    "//llvm/lib/Testing/Support",
+  ]
+  sources = [
+    "GSYMTest.cpp",
+  ]
+}