| Petr Hosek | 05a04cb | 2017-08-01 00:33:58 +0000 | [diff] [blame] | 1 | set(LLVM_LINK_COMPONENTS |
| 2 | Object |
| Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 3 | Option |
| Petr Hosek | 05a04cb | 2017-08-01 00:33:58 +0000 | [diff] [blame] | 4 | Support |
| 5 | MC |
| 6 | ) |
| Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 7 | |
| Alexander Shaposhnikov | cca6998 | 2018-05-07 19:32:09 +0000 | [diff] [blame] | 8 | set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td) |
| 9 | tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs) |
| 10 | add_public_tablegen_target(ObjcopyOptsTableGen) |
| Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 11 | |
| Alexander Shaposhnikov | cca6998 | 2018-05-07 19:32:09 +0000 | [diff] [blame] | 12 | set(LLVM_TARGET_DEFINITIONS StripOpts.td) |
| 13 | tablegen(LLVM StripOpts.inc -gen-opt-parser-defs) |
| 14 | add_public_tablegen_target(StripOptsTableGen) |
| Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 15 | |
| Petr Hosek | 05a04cb | 2017-08-01 00:33:58 +0000 | [diff] [blame] | 16 | add_llvm_tool(llvm-objcopy |
| Alexander Shaposhnikov | 8d0b74c | 2018-10-11 22:33:50 +0000 | [diff] [blame^] | 17 | CopyConfig.cpp |
| Petr Hosek | 05a04cb | 2017-08-01 00:33:58 +0000 | [diff] [blame] | 18 | llvm-objcopy.cpp |
| 19 | Object.cpp |
| Alexander Shaposhnikov | d688479 | 2018-04-24 05:43:32 +0000 | [diff] [blame] | 20 | DEPENDS |
| Alexander Shaposhnikov | cca6998 | 2018-05-07 19:32:09 +0000 | [diff] [blame] | 21 | ObjcopyOptsTableGen |
| 22 | StripOptsTableGen |
| Petr Hosek | 05a04cb | 2017-08-01 00:33:58 +0000 | [diff] [blame] | 23 | ) |
| Shoaib Meenai | 08bb38f | 2017-11-02 21:43:32 +0000 | [diff] [blame] | 24 | |
| Alexander Shaposhnikov | cca6998 | 2018-05-07 19:32:09 +0000 | [diff] [blame] | 25 | add_llvm_tool_symlink(llvm-strip llvm-objcopy) |
| 26 | |
| Shoaib Meenai | 08bb38f | 2017-11-02 21:43:32 +0000 | [diff] [blame] | 27 | if(LLVM_INSTALL_BINUTILS_SYMLINKS) |
| 28 | add_llvm_tool_symlink(objcopy llvm-objcopy) |
| Alexander Shaposhnikov | cca6998 | 2018-05-07 19:32:09 +0000 | [diff] [blame] | 29 | add_llvm_tool_symlink(strip llvm-objcopy) |
| Shoaib Meenai | 08bb38f | 2017-11-02 21:43:32 +0000 | [diff] [blame] | 30 | endif() |