Index: llvm/trunk/utils/gn/secondary/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/BUILD.gn +++ llvm/trunk/utils/gn/secondary/BUILD.gn @@ -10,6 +10,9 @@ "//llvm/tools/llvm-link", "//llvm/tools/llvm-rc", "//llvm/tools/llvm-rtdyld", + "//llvm/tools/llvm-size", + "//llvm/tools/llvm-split", + "//llvm/tools/llvm-strings", "//llvm/tools/llvm-undname", "//llvm/tools/llvm-xray", "//llvm/tools/sancov", @@ -89,6 +92,16 @@ "//llvm/tools/llvm-readobj:symlinks", ] } +group("llvm-size") { + deps = [ + "//llvm/tools/llvm-size:symlinks", + ] +} +group("llvm-strings") { + deps = [ + "//llvm/tools/llvm-strings:symlinks", + ] +} group("llvm-symbolizer") { deps = [ "//llvm/tools/llvm-symbolizer:symlinks", Index: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-size/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-size/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-size/BUILD.gn @@ -0,0 +1,32 @@ +import("//llvm/tools/binutils_symlinks.gni") +import("//llvm/utils/gn/build/symlink_or_copy.gni") + +if (llvm_install_binutils_symlinks) { + symlink_or_copy("size") { + deps = [ + ":llvm-size", + ] + source = "llvm-size" + output = "$root_out_dir/bin/size" + } +} + +# //:llvm-size depends on this symlink target, see comment in //BUILD.gn. +group("symlinks") { + deps = [ + ":llvm-size", + ] + if (llvm_install_binutils_symlinks) { + deps += [ ":size" ] + } +} + +executable("llvm-size") { + deps = [ + "//llvm/lib/Object", + "//llvm/lib/Support", + ] + sources = [ + "llvm-size.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-split/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-split/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-split/BUILD.gn @@ -0,0 +1,12 @@ +executable("llvm-split") { + deps = [ + "//llvm/lib/Bitcode/Writer", + "//llvm/lib/IR", + "//llvm/lib/IRReader", + "//llvm/lib/Support", + "//llvm/lib/Transforms/Utils", + ] + sources = [ + "llvm-split.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/tools/llvm-strings/BUILD.gn @@ -0,0 +1,33 @@ +import("//llvm/tools/binutils_symlinks.gni") +import("//llvm/utils/gn/build/symlink_or_copy.gni") + +if (llvm_install_binutils_symlinks) { + symlink_or_copy("strings") { + deps = [ + ":llvm-strings", + ] + source = "llvm-strings" + output = "$root_out_dir/bin/strings" + } +} + +# //:llvm-strings depends on this symlink target, see comment in //BUILD.gn. +group("symlinks") { + deps = [ + ":llvm-strings", + ] + if (llvm_install_binutils_symlinks) { + deps += [ ":strings" ] + } +} + +executable("llvm-strings") { + deps = [ + "//llvm/lib/IR", + "//llvm/lib/Object", + "//llvm/lib/Support", + ] + sources = [ + "llvm-strings.cpp", + ] +}