blob: afbf78791766334db9a0d31dad9c0a4ca184c5bb [file] [log] [blame]
Petr Hosek05a04cb2017-08-01 00:33:58 +00001set(LLVM_LINK_COMPONENTS
2 Object
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +00003 Option
Petr Hosek05a04cb2017-08-01 00:33:58 +00004 Support
5 MC
6 )
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +00007
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +00008set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
9tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
10add_public_tablegen_target(ObjcopyOptsTableGen)
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +000011
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000012set(LLVM_TARGET_DEFINITIONS StripOpts.td)
13tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
14add_public_tablegen_target(StripOptsTableGen)
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +000015
Petr Hosek05a04cb2017-08-01 00:33:58 +000016add_llvm_tool(llvm-objcopy
Alexander Shaposhnikov3d4c4ac2018-10-16 05:40:18 +000017 Buffer.cpp
Alexander Shaposhnikov8d0b74c2018-10-11 22:33:50 +000018 CopyConfig.cpp
Petr Hosek05a04cb2017-08-01 00:33:58 +000019 llvm-objcopy.cpp
Alexander Shaposhnikovf4e75a52018-10-29 21:22:58 +000020 ELF/ELFObjcopy.cpp
21 ELF/Object.cpp
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +000022 DEPENDS
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000023 ObjcopyOptsTableGen
24 StripOptsTableGen
Petr Hosek05a04cb2017-08-01 00:33:58 +000025 )
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000026
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000027add_llvm_tool_symlink(llvm-strip llvm-objcopy)
28
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000029if(LLVM_INSTALL_BINUTILS_SYMLINKS)
30 add_llvm_tool_symlink(objcopy llvm-objcopy)
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000031 add_llvm_tool_symlink(strip llvm-objcopy)
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000032endif()