1 set(LLVM_LINK_COMPONENTS 2 Object 3 Option 4 Support 5 MC 6 ) 7 8 set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td) 9 tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs) 10 add_public_tablegen_target(ObjcopyOptsTableGen) 11 12 set(LLVM_TARGET_DEFINITIONS StripOpts.td) 13 tablegen(LLVM StripOpts.inc -gen-opt-parser-defs) 14 add_public_tablegen_target(StripOptsTableGen) 15 16 add_llvm_tool(llvm-objcopy 17 llvm-objcopy.cpp 18 Object.cpp 19 DEPENDS 20 ObjcopyOptsTableGen 21 StripOptsTableGen 22 ) 23 24 add_llvm_tool_symlink(llvm-strip llvm-objcopy) 25 26 if(LLVM_INSTALL_BINUTILS_SYMLINKS) 27 add_llvm_tool_symlink(objcopy llvm-objcopy) 28 add_llvm_tool_symlink(strip llvm-objcopy) 29 endif() 30