llvm.org GIT mirror llvm / a2e417f
[gn build] Add some llvm/tools: llvm-size, llvm-split, llvm-strings Needed for check-llvm. Differential Revision: https://reviews.llvm.org/D56164 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350212 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 9 months ago
4 changed file(s) with 90 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
99 "//llvm/tools/llvm-link",
1010 "//llvm/tools/llvm-rc",
1111 "//llvm/tools/llvm-rtdyld",
12 "//llvm/tools/llvm-size",
13 "//llvm/tools/llvm-split",
14 "//llvm/tools/llvm-strings",
1215 "//llvm/tools/llvm-undname",
1316 "//llvm/tools/llvm-xray",
1417 "//llvm/tools/sancov",
8891 "//llvm/tools/llvm-readobj:symlinks",
8992 ]
9093 }
94 group("llvm-size") {
95 deps = [
96 "//llvm/tools/llvm-size:symlinks",
97 ]
98 }
99 group("llvm-strings") {
100 deps = [
101 "//llvm/tools/llvm-strings:symlinks",
102 ]
103 }
91104 group("llvm-symbolizer") {
92105 deps = [
93106 "//llvm/tools/llvm-symbolizer:symlinks",
0 import("//llvm/tools/binutils_symlinks.gni")
1 import("//llvm/utils/gn/build/symlink_or_copy.gni")
2
3 if (llvm_install_binutils_symlinks) {
4 symlink_or_copy("size") {
5 deps = [
6 ":llvm-size",
7 ]
8 source = "llvm-size"
9 output = "$root_out_dir/bin/size"
10 }
11 }
12
13 # //:llvm-size depends on this symlink target, see comment in //BUILD.gn.
14 group("symlinks") {
15 deps = [
16 ":llvm-size",
17 ]
18 if (llvm_install_binutils_symlinks) {
19 deps += [ ":size" ]
20 }
21 }
22
23 executable("llvm-size") {
24 deps = [
25 "//llvm/lib/Object",
26 "//llvm/lib/Support",
27 ]
28 sources = [
29 "llvm-size.cpp",
30 ]
31 }
0 executable("llvm-split") {
1 deps = [
2 "//llvm/lib/Bitcode/Writer",
3 "//llvm/lib/IR",
4 "//llvm/lib/IRReader",
5 "//llvm/lib/Support",
6 "//llvm/lib/Transforms/Utils",
7 ]
8 sources = [
9 "llvm-split.cpp",
10 ]
11 }
0 import("//llvm/tools/binutils_symlinks.gni")
1 import("//llvm/utils/gn/build/symlink_or_copy.gni")
2
3 if (llvm_install_binutils_symlinks) {
4 symlink_or_copy("strings") {
5 deps = [
6 ":llvm-strings",
7 ]
8 source = "llvm-strings"
9 output = "$root_out_dir/bin/strings"
10 }
11 }
12
13 # //:llvm-strings depends on this symlink target, see comment in //BUILD.gn.
14 group("symlinks") {
15 deps = [
16 ":llvm-strings",
17 ]
18 if (llvm_install_binutils_symlinks) {
19 deps += [ ":strings" ]
20 }
21 }
22
23 executable("llvm-strings") {
24 deps = [
25 "//llvm/lib/IR",
26 "//llvm/lib/Object",
27 "//llvm/lib/Support",
28 ]
29 sources = [
30 "llvm-strings.cpp",
31 ]
32 }