1 import("//llvm/tools/binutils_symlinks.gni")
2 import("//llvm/utils/TableGen/tablegen.gni")
3 import("//llvm/utils/gn/build/symlink_or_copy.gni")
5 tablegen("ObjcopyOpts") {
6 visibility = [ ":llvm-objcopy" ]
7 args = [ "-gen-opt-parser-defs" ]
10 tablegen("StripOpts") {
11 visibility = [ ":llvm-objcopy" ]
12 args = [ "-gen-opt-parser-defs" ]
15 symlinks = [ "llvm-strip" ]
16 if (llvm_install_binutils_symlinks) {
22 foreach(target, symlinks) {
23 symlink_or_copy(target) {
27 source = "llvm-objcopy"
28 output = "$root_out_dir/bin/$target"
32 # //:llvm-objcopy depends on this symlink target, see comment in //BUILD.gn.
35 foreach(target, symlinks) {
36 deps += [ ":$target" ]
40 executable("llvm-objcopy") {
49 include_dirs = [ "." ]
52 "COFF/COFFObjcopy.cpp",
60 "MachO/MachOLayoutBuilder.cpp",
61 "MachO/MachOObjcopy.cpp",
62 "MachO/MachOReader.cpp",
63 "MachO/MachOWriter.cpp",