50 lines · plain
1set(LLVM_LINK_COMPONENTS2 Object3 ObjCopy4 Option5 Support6 TargetParser7 MC8 BinaryFormat9 )10 11set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)12tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)13add_public_tablegen_target(ObjcopyOptsTableGen)14 15set(LLVM_TARGET_DEFINITIONS InstallNameToolOpts.td)16tablegen(LLVM InstallNameToolOpts.inc -gen-opt-parser-defs)17add_public_tablegen_target(InstallNameToolOptsTableGen)18 19set(LLVM_TARGET_DEFINITIONS BitcodeStripOpts.td)20tablegen(LLVM BitcodeStripOpts.inc -gen-opt-parser-defs)21add_public_tablegen_target(BitcodeStripOptsTableGen)22 23set(LLVM_TARGET_DEFINITIONS StripOpts.td)24tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)25add_public_tablegen_target(StripOptsTableGen)26 27add_llvm_tool(llvm-objcopy28 ObjcopyOptions.cpp29 llvm-objcopy.cpp30 DEPENDS31 ObjcopyOptsTableGen32 InstallNameToolOptsTableGen33 StripOptsTableGen34 GENERATE_DRIVER35 )36 37add_llvm_tool_symlink(llvm-install-name-tool llvm-objcopy)38add_llvm_tool_symlink(llvm-bitcode-strip llvm-objcopy)39add_llvm_tool_symlink(llvm-strip llvm-objcopy)40 41if(LLVM_INSTALL_BINUTILS_SYMLINKS)42 add_llvm_tool_symlink(objcopy llvm-objcopy)43 add_llvm_tool_symlink(strip llvm-objcopy)44endif()45 46if(LLVM_INSTALL_CCTOOLS_SYMLINKS)47 add_llvm_tool_symlink(install_name_tool llvm-install-name-tool)48 add_llvm_tool_symlink(bitcode_strip llvm-bitcode-strip)49endif()50