Crates.io | shared_lib_deployer |
lib.rs | shared_lib_deployer |
version | 1.5.1 |
source | src |
created_at | 2024-03-11 09:47:12.904782 |
updated_at | 2024-04-29 03:41:30.110812 |
description | Deploy dlls for your exectuable, useful for redistributing your application as binaries. |
homepage | https://github.com/ToKiNoBug/SharedLibDeployer |
repository | https://github.com/ToKiNoBug/SharedLibDeployer |
max_upload_size | |
id | 1169339 |
size | 116,021 |
Deploy dlls for your exectuable, useful for redistributing your application as binaries.
file(DOWNLOAD https://github.com/SlopeCraft/SharedLibDeployer/releases/latest/download/DLLDeployer.cmake
${CMAKE_BINARY_DIR}/DLLDeployer.cmake)
include(DLLDeployer.cmake)
add_executable(your_exe <your/source/files>)
# Deploy dlls at current binary dir
DLLD_add_deploy(your_exe BUILD_MODE
VERBOSE # Show detailed information
)
install(TARGETS your_exe RUNTIME DESTINATION bin)
# Deploy dlls at installation dir, useful when distributing binaries
DLLD_add_deploy(your_exe INSTALL_MODE
INSTALL_DESTINATION bin # Where you install the exe
COPY_VC_REDIST # Copy Microsoft Visual C++ redistributable binaries, By default it is turned off
)
A detailed example is here
deploy-dll.exe C:/path/to/your/executable.exe
deploy-dll.exe C:/path/to/your/shared/lib.dll
Usage: deploy-dll.exe [OPTIONS] <BINARY_FILE>
Arguments:
<BINARY_FILE>
The target file to deploy dll for. This can be an exe or dll
Options:
--skip-env-path
No not search in system variable PATH
--copy-vc-redist
Copy Microsoft Visual C/C++ redistributable dlls
--verbose
Show verbose information during execution
--shallow-search-dir <SHALLOW_SEARCH_DIR>
Search for dll in those dirs
--no-shallow-search
Disable shallow search
--deep-search-dir <DEEP_SEARCH_DIR>
Search for dll recursively in those dirs
--no-deep-search
Disable recursive search
--cmake-prefix-path <CMAKE_PREFIX_PATH>
CMAKE_PREFIX_PATH for cmake to search for packages
--ignore <IGNORE>
Dll files that won't be deployed
--objdump-file <OBJDUMP_FILE>
Location of dumpbin file
[default: [builtin]]
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version