gn build: Follow-up to r364491 "[GN] Update build files"

- 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.

llvm-svn: 364501
This commit is contained in:
Nico Weber 2019-06-27 06:08:57 +00:00
parent 59b39faa18
commit 852f45ba88
5 changed files with 19 additions and 4 deletions

View File

@ -11,6 +11,7 @@ static_library("DependencyScanning") {
"//clang/lib/Parse",
"//clang/lib/Serialization",
"//clang/lib/Tooling",
"//llvm/lib/IR",
"//llvm/lib/Support",
]
sources = [

View 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 = [

View 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",

View 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",

View File

@ -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",
]
}