1set(LLVM_LINK_COMPONENTS 2 Object 3 Option 4 Support 5 MC 6 ) 7 8set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td) 9tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs) 10add_public_tablegen_target(ObjcopyOptsTableGen) 11 12set(LLVM_TARGET_DEFINITIONS InstallNameToolOpts.td) 13tablegen(LLVM InstallNameToolOpts.inc -gen-opt-parser-defs) 14add_public_tablegen_target(InstallNameToolOptsTableGen) 15 16set(LLVM_TARGET_DEFINITIONS BitcodeStripOpts.td) 17tablegen(LLVM BitcodeStripOpts.inc -gen-opt-parser-defs) 18add_public_tablegen_target(BitcodeStripOptsTableGen) 19 20set(LLVM_TARGET_DEFINITIONS StripOpts.td) 21tablegen(LLVM StripOpts.inc -gen-opt-parser-defs) 22add_public_tablegen_target(StripOptsTableGen) 23 24add_llvm_tool(llvm-objcopy 25 Buffer.cpp 26 CopyConfig.cpp 27 llvm-objcopy.cpp 28 COFF/COFFObjcopy.cpp 29 COFF/Object.cpp 30 COFF/Reader.cpp 31 COFF/Writer.cpp 32 ELF/ELFConfig.cpp 33 ELF/ELFObjcopy.cpp 34 ELF/Object.cpp 35 MachO/MachOObjcopy.cpp 36 MachO/MachOReader.cpp 37 MachO/MachOWriter.cpp 38 MachO/MachOLayoutBuilder.cpp 39 MachO/Object.cpp 40 wasm/Object.cpp 41 wasm/Reader.cpp 42 wasm/Writer.cpp 43 wasm/WasmObjcopy.cpp 44 DEPENDS 45 ObjcopyOptsTableGen 46 InstallNameToolOptsTableGen 47 StripOptsTableGen 48 ) 49 50add_llvm_tool_symlink(llvm-install-name-tool llvm-objcopy) 51add_llvm_tool_symlink(llvm-bitcode-strip llvm-objcopy) 52add_llvm_tool_symlink(llvm-strip llvm-objcopy) 53 54if(LLVM_INSTALL_BINUTILS_SYMLINKS) 55 add_llvm_tool_symlink(objcopy llvm-objcopy) 56 add_llvm_tool_symlink(strip llvm-objcopy) 57endif() 58 59if(LLVM_INSTALL_CCTOOLS_SYMLINKS) 60 add_llvm_tool_symlink(install_name_tool llvm-install-name-tool) 61 add_llvm_tool_symlink(bitcode_strip llvm-bitcode-strip) 62endif() 63