mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[gn build] Add some llvm/tools: llvm-c-test, llvm-cfi-verify, llvm-cov, llvm-cvtres
Needed for check-llvm. Differential Revision: https://reviews.llvm.org/D56191 llvm-svn: 350216
This commit is contained in:
parent
5741b35ffc
commit
37c7c3a80d
@ -5,6 +5,10 @@ group("default") {
|
||||
deps = [
|
||||
"//clang/test",
|
||||
"//lld/test",
|
||||
"//llvm/tools/llvm-c-test",
|
||||
"//llvm/tools/llvm-cfi-verify",
|
||||
"//llvm/tools/llvm-cov",
|
||||
"//llvm/tools/llvm-cvtres",
|
||||
"//llvm/tools/llvm-cxxdump",
|
||||
"//llvm/tools/llvm-cxxfilt",
|
||||
"//llvm/tools/llvm-cxxmap",
|
||||
|
32
utils/gn/secondary/llvm/tools/llvm-c-test/BUILD.gn
Normal file
32
utils/gn/secondary/llvm/tools/llvm-c-test/BUILD.gn
Normal file
@ -0,0 +1,32 @@
|
||||
executable("llvm-c-test") {
|
||||
deps = [
|
||||
"//llvm/lib/Bitcode/Reader",
|
||||
"//llvm/lib/IR",
|
||||
"//llvm/lib/MC/MCDisassembler",
|
||||
"//llvm/lib/Object",
|
||||
"//llvm/lib/Support",
|
||||
"//llvm/lib/Target",
|
||||
"//llvm/lib/Target:TargetsToBuild",
|
||||
]
|
||||
if (host_os != "win") {
|
||||
cflags_c = [
|
||||
"-std=gnu99",
|
||||
"-Wstrict-prototypes",
|
||||
]
|
||||
}
|
||||
sources = [
|
||||
"attributes.c",
|
||||
"calc.c",
|
||||
"debuginfo.c",
|
||||
"diagnostic.c",
|
||||
"disassemble.c",
|
||||
"echo.cpp",
|
||||
"helpers.c",
|
||||
"include-all.c",
|
||||
"main.c",
|
||||
"metadata.c",
|
||||
"module.c",
|
||||
"object.c",
|
||||
"targets.c",
|
||||
]
|
||||
}
|
18
utils/gn/secondary/llvm/tools/llvm-cfi-verify/BUILD.gn
Normal file
18
utils/gn/secondary/llvm/tools/llvm-cfi-verify/BUILD.gn
Normal file
@ -0,0 +1,18 @@
|
||||
executable("llvm-cfi-verify") {
|
||||
deps = [
|
||||
"lib",
|
||||
"//llvm/lib/DebugInfo/Symbolize",
|
||||
"//llvm/lib/MC",
|
||||
"//llvm/lib/MC/MCParser",
|
||||
"//llvm/lib/Object",
|
||||
"//llvm/lib/Support",
|
||||
"//llvm/lib/Target:AllTargetsAsmParsers",
|
||||
"//llvm/lib/Target:AllTargetsAsmPrinters",
|
||||
"//llvm/lib/Target:AllTargetsDescs",
|
||||
"//llvm/lib/Target:AllTargetsDisassemblers",
|
||||
"//llvm/lib/Target:AllTargetsInfos",
|
||||
]
|
||||
sources = [
|
||||
"llvm-cfi-verify.cpp",
|
||||
]
|
||||
}
|
18
utils/gn/secondary/llvm/tools/llvm-cfi-verify/lib/BUILD.gn
Normal file
18
utils/gn/secondary/llvm/tools/llvm-cfi-verify/lib/BUILD.gn
Normal file
@ -0,0 +1,18 @@
|
||||
static_library("lib") {
|
||||
output_name = "LLVMCFIVerify"
|
||||
deps = [
|
||||
"//llvm/lib/DebugInfo/DWARF",
|
||||
"//llvm/lib/DebugInfo/Symbolize",
|
||||
"//llvm/lib/MC",
|
||||
"//llvm/lib/MC/MCDisassembler",
|
||||
"//llvm/lib/MC/MCParser",
|
||||
"//llvm/lib/Object",
|
||||
"//llvm/lib/Support",
|
||||
]
|
||||
sources = [
|
||||
"FileAnalysis.cpp",
|
||||
"FileAnalysis.h",
|
||||
"GraphBuilder.cpp",
|
||||
"GraphBuilder.h",
|
||||
]
|
||||
}
|
24
utils/gn/secondary/llvm/tools/llvm-cov/BUILD.gn
Normal file
24
utils/gn/secondary/llvm/tools/llvm-cov/BUILD.gn
Normal file
@ -0,0 +1,24 @@
|
||||
executable("llvm-cov") {
|
||||
deps = [
|
||||
"//llvm/include/llvm/Config:llvm-config",
|
||||
"//llvm/lib/IR",
|
||||
"//llvm/lib/Object",
|
||||
"//llvm/lib/ProfileData",
|
||||
"//llvm/lib/ProfileData/Coverage",
|
||||
"//llvm/lib/Support",
|
||||
]
|
||||
sources = [
|
||||
"CodeCoverage.cpp",
|
||||
"CoverageExporterJson.cpp",
|
||||
"CoverageExporterLcov.cpp",
|
||||
"CoverageFilters.cpp",
|
||||
"CoverageReport.cpp",
|
||||
"CoverageSummaryInfo.cpp",
|
||||
"SourceCoverageView.cpp",
|
||||
"SourceCoverageViewHTML.cpp",
|
||||
"SourceCoverageViewText.cpp",
|
||||
"TestingSupport.cpp",
|
||||
"gcov.cpp",
|
||||
"llvm-cov.cpp",
|
||||
]
|
||||
}
|
18
utils/gn/secondary/llvm/tools/llvm-cvtres/BUILD.gn
Normal file
18
utils/gn/secondary/llvm/tools/llvm-cvtres/BUILD.gn
Normal file
@ -0,0 +1,18 @@
|
||||
import("//llvm/utils/TableGen/tablegen.gni")
|
||||
|
||||
tablegen("Opts") {
|
||||
visibility = [ ":llvm-cvtres" ]
|
||||
args = [ "-gen-opt-parser-defs" ]
|
||||
}
|
||||
|
||||
executable("llvm-cvtres") {
|
||||
deps = [
|
||||
":Opts",
|
||||
"//llvm/lib/Object",
|
||||
"//llvm/lib/Option",
|
||||
"//llvm/lib/Support",
|
||||
]
|
||||
sources = [
|
||||
"llvm-cvtres.cpp",
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user