mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[gn build] (manually) port f8de9aaef2f4
This commit is contained in:
parent
de1b48ff21
commit
7195ece044
@ -76,6 +76,9 @@ group("llvm-objcopy") {
|
||||
group("llvm-objdump") {
|
||||
deps = [ "//llvm/tools/llvm-objdump:symlinks" ]
|
||||
}
|
||||
group("llvm-rc") {
|
||||
deps = [ "//llvm/tools/llvm-rc:symlinks" ]
|
||||
}
|
||||
group("llvm-readobj") {
|
||||
deps = [ "//llvm/tools/llvm-readobj:symlinks" ]
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ group("test") {
|
||||
"//llvm/tools/llvm-pdbutil",
|
||||
"//llvm/tools/llvm-profdata",
|
||||
"//llvm/tools/llvm-profgen",
|
||||
"//llvm/tools/llvm-rc",
|
||||
"//llvm/tools/llvm-rc:symlinks",
|
||||
"//llvm/tools/llvm-readobj:symlinks",
|
||||
"//llvm/tools/llvm-reduce",
|
||||
"//llvm/tools/llvm-rtdyld",
|
||||
|
@ -1,13 +1,43 @@
|
||||
import("//llvm/tools/binutils_symlinks.gni")
|
||||
import("//llvm/utils/TableGen/tablegen.gni")
|
||||
import("//llvm/utils/gn/build/symlink_or_copy.gni")
|
||||
|
||||
tablegen("Opts") {
|
||||
visibility = [ ":llvm-rc" ]
|
||||
args = [ "-gen-opt-parser-defs" ]
|
||||
}
|
||||
|
||||
tablegen("WindresOpts") {
|
||||
visibility = [ ":llvm-rc" ]
|
||||
args = [ "-gen-opt-parser-defs" ]
|
||||
}
|
||||
|
||||
symlinks = [ "llvm-windres" ]
|
||||
if (llvm_install_binutils_symlinks) {
|
||||
symlinks += [ "windres" ]
|
||||
}
|
||||
|
||||
foreach(target, symlinks) {
|
||||
symlink_or_copy(target) {
|
||||
deps = [ ":llvm-rc" ]
|
||||
source = "llvm-rc"
|
||||
output = "$root_out_dir/bin/$target"
|
||||
}
|
||||
}
|
||||
|
||||
# //:llvm-rc depends on this symlink target, see comment in //BUILD.gn.
|
||||
group("symlinks") {
|
||||
deps = [ ":llvm-rc" ]
|
||||
foreach(target, symlinks) {
|
||||
deps += [ ":$target" ]
|
||||
}
|
||||
}
|
||||
|
||||
executable("llvm-rc") {
|
||||
deps = [
|
||||
":Opts",
|
||||
":WindresOpts",
|
||||
"//llvm/lib/Object",
|
||||
"//llvm/lib/Option",
|
||||
"//llvm/lib/Support",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user