blob: 9ac7d0eb4c2d19fe4d7013a378f2fe3d7d1bf45d [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
20 Object.cpp
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +000021 DEPENDS
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000022 ObjcopyOptsTableGen
23 StripOptsTableGen
Petr Hosek05a04cb2017-08-01 00:33:58 +000024 )
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000025
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000026add_llvm_tool_symlink(llvm-strip llvm-objcopy)
27
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000028if(LLVM_INSTALL_BINUTILS_SYMLINKS)
29 add_llvm_tool_symlink(objcopy llvm-objcopy)
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000030 add_llvm_tool_symlink(strip llvm-objcopy)
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000031endif()