OSDN Git Service

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 8f983fc..572d0d6 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 d79c0a7..48b70bd 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 961b7c5..7c6a316 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 0fd52e5..ca38e56 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",
+  ]
+}