| 1 |
set(LLVM_LINK_COMPONENTS |
| 2 |
Object |
| 3 |
ObjCopy |
| 4 |
Option |
| 5 |
Support |
| 6 |
TargetParser |
| 7 |
MC |
| 8 |
BinaryFormat |
| 9 |
) |
| 10 |
|
| 11 |
set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td) |
| 12 |
tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs) |
| 13 |
add_public_tablegen_target(ObjcopyOptsTableGen) |
| 14 |
|
| 15 |
set(LLVM_TARGET_DEFINITIONS InstallNameToolOpts.td) |
| 16 |
tablegen(LLVM InstallNameToolOpts.inc -gen-opt-parser-defs) |
| 17 |
add_public_tablegen_target(InstallNameToolOptsTableGen) |
| 18 |
|
| 19 |
set(LLVM_TARGET_DEFINITIONS BitcodeStripOpts.td) |
| 20 |
tablegen(LLVM BitcodeStripOpts.inc -gen-opt-parser-defs) |
| 21 |
add_public_tablegen_target(BitcodeStripOptsTableGen) |
| 22 |
|
| 23 |
set(LLVM_TARGET_DEFINITIONS StripOpts.td) |
| 24 |
tablegen(LLVM StripOpts.inc -gen-opt-parser-defs) |
| 25 |
add_public_tablegen_target(StripOptsTableGen) |
| 26 |
|
| 27 |
add_llvm_tool(llvm-objcopy |
| 28 |
ObjcopyOptions.cpp |
| 29 |
llvm-objcopy.cpp |
| 30 |
DEPENDS |
| 31 |
ObjcopyOptsTableGen |
| 32 |
InstallNameToolOptsTableGen |
| 33 |
StripOptsTableGen |
| 34 |
GENERATE_DRIVER |
| 35 |
) |
| 36 |
|
| 37 |
add_llvm_tool_symlink(llvm-install-name-tool llvm-objcopy) |
| 38 |
add_llvm_tool_symlink(llvm-bitcode-strip llvm-objcopy) |
| 39 |
add_llvm_tool_symlink(llvm-strip llvm-objcopy) |
| 40 |
|
| 41 |
if(LLVM_INSTALL_BINUTILS_SYMLINKS) |
| 42 |
add_llvm_tool_symlink(objcopy llvm-objcopy) |
| 43 |
add_llvm_tool_symlink(strip llvm-objcopy) |
| 44 |
endif() |
| 45 |
|
| 46 |
if(LLVM_INSTALL_CCTOOLS_SYMLINKS) |
| 47 |
add_llvm_tool_symlink(install_name_tool llvm-install-name-tool) |
| 48 |
add_llvm_tool_symlink(bitcode_strip llvm-bitcode-strip) |
| 49 |
endif() |