blob: 8d963e56758598fca489f928eab63485e3389fda [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 Shaposhnikov8d0b74c2018-10-11 22:33:50 +000017 CopyConfig.cpp
Petr Hosek05a04cb2017-08-01 00:33:58 +000018 llvm-objcopy.cpp
19 Object.cpp
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +000020 DEPENDS
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000021 ObjcopyOptsTableGen
22 StripOptsTableGen
Petr Hosek05a04cb2017-08-01 00:33:58 +000023 )
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000024
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000025add_llvm_tool_symlink(llvm-strip llvm-objcopy)
26
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000027if(LLVM_INSTALL_BINUTILS_SYMLINKS)
28 add_llvm_tool_symlink(objcopy llvm-objcopy)
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000029 add_llvm_tool_symlink(strip llvm-objcopy)
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000030endif()