2017-08-01 02:33:58 +02:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Object
|
2018-04-24 07:43:32 +02:00
|
|
|
Option
|
2017-08-01 02:33:58 +02:00
|
|
|
Support
|
|
|
|
MC
|
|
|
|
)
|
2018-04-24 07:43:32 +02:00
|
|
|
|
2018-05-07 21:32:09 +02:00
|
|
|
set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
|
|
|
|
tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(ObjcopyOptsTableGen)
|
2018-04-24 07:43:32 +02:00
|
|
|
|
2019-11-20 08:30:52 +01:00
|
|
|
set(LLVM_TARGET_DEFINITIONS InstallNameToolOpts.td)
|
|
|
|
tablegen(LLVM InstallNameToolOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(InstallNameToolOptsTableGen)
|
|
|
|
|
2020-09-19 03:11:22 +02:00
|
|
|
set(LLVM_TARGET_DEFINITIONS BitcodeStripOpts.td)
|
|
|
|
tablegen(LLVM BitcodeStripOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(BitcodeStripOptsTableGen)
|
|
|
|
|
2018-05-07 21:32:09 +02:00
|
|
|
set(LLVM_TARGET_DEFINITIONS StripOpts.td)
|
|
|
|
tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(StripOptsTableGen)
|
2018-04-24 07:43:32 +02:00
|
|
|
|
2017-08-01 02:33:58 +02:00
|
|
|
add_llvm_tool(llvm-objcopy
|
2021-04-23 13:19:11 +02:00
|
|
|
ConfigManager.cpp
|
2017-08-01 02:33:58 +02:00
|
|
|
llvm-objcopy.cpp
|
2018-12-19 08:24:38 +01:00
|
|
|
COFF/COFFObjcopy.cpp
|
2019-01-10 22:28:24 +01:00
|
|
|
COFF/Object.cpp
|
2018-12-19 08:24:38 +01:00
|
|
|
COFF/Reader.cpp
|
|
|
|
COFF/Writer.cpp
|
2018-10-29 22:22:58 +01:00
|
|
|
ELF/ELFObjcopy.cpp
|
|
|
|
ELF/Object.cpp
|
2019-02-02 01:38:07 +01:00
|
|
|
MachO/MachOObjcopy.cpp
|
|
|
|
MachO/MachOReader.cpp
|
|
|
|
MachO/MachOWriter.cpp
|
2019-08-19 23:05:31 +02:00
|
|
|
MachO/MachOLayoutBuilder.cpp
|
2019-06-21 02:21:50 +02:00
|
|
|
MachO/Object.cpp
|
2020-02-12 00:13:40 +01:00
|
|
|
wasm/Object.cpp
|
2020-01-30 02:30:57 +01:00
|
|
|
wasm/Reader.cpp
|
|
|
|
wasm/Writer.cpp
|
|
|
|
wasm/WasmObjcopy.cpp
|
2018-04-24 07:43:32 +02:00
|
|
|
DEPENDS
|
2018-05-07 21:32:09 +02:00
|
|
|
ObjcopyOptsTableGen
|
2019-11-20 08:30:52 +01:00
|
|
|
InstallNameToolOptsTableGen
|
2018-05-07 21:32:09 +02:00
|
|
|
StripOptsTableGen
|
2017-08-01 02:33:58 +02:00
|
|
|
)
|
2017-11-02 22:43:32 +01:00
|
|
|
|
2019-11-20 08:30:52 +01:00
|
|
|
add_llvm_tool_symlink(llvm-install-name-tool llvm-objcopy)
|
2020-09-19 03:11:22 +02:00
|
|
|
add_llvm_tool_symlink(llvm-bitcode-strip llvm-objcopy)
|
2018-05-07 21:32:09 +02:00
|
|
|
add_llvm_tool_symlink(llvm-strip llvm-objcopy)
|
|
|
|
|
2017-11-02 22:43:32 +01:00
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
|
|
add_llvm_tool_symlink(objcopy llvm-objcopy)
|
2018-05-07 21:32:09 +02:00
|
|
|
add_llvm_tool_symlink(strip llvm-objcopy)
|
2017-11-02 22:43:32 +01:00
|
|
|
endif()
|
2020-08-01 00:22:16 +02:00
|
|
|
|
|
|
|
if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
|
|
|
|
add_llvm_tool_symlink(install_name_tool llvm-install-name-tool)
|
2020-09-19 03:11:22 +02:00
|
|
|
add_llvm_tool_symlink(bitcode_strip llvm-bitcode-strip)
|
2020-08-01 00:22:16 +02:00
|
|
|
endif()
|