blob: 3b6c345b292b6fbe0b31aaea810af3b90ede36d3 [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
Martin Storsjoe84a0b52018-12-19 07:24:38 +000020 COFF/COFFObjcopy.cpp
21 COFF/Reader.cpp
22 COFF/Writer.cpp
Alexander Shaposhnikovf4e75a52018-10-29 21:22:58 +000023 ELF/ELFObjcopy.cpp
24 ELF/Object.cpp
Alexander Shaposhnikovd6884792018-04-24 05:43:32 +000025 DEPENDS
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000026 ObjcopyOptsTableGen
27 StripOptsTableGen
Petr Hosek05a04cb2017-08-01 00:33:58 +000028 )
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000029
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000030add_llvm_tool_symlink(llvm-strip llvm-objcopy)
31
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000032if(LLVM_INSTALL_BINUTILS_SYMLINKS)
33 add_llvm_tool_symlink(objcopy llvm-objcopy)
Alexander Shaposhnikovcca69982018-05-07 19:32:09 +000034 add_llvm_tool_symlink(strip llvm-objcopy)
Shoaib Meenai08bb38f2017-11-02 21:43:32 +000035endif()