mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
include BCrypt on Windows
This commit is contained in:
parent
1c5b01975c
commit
85153423be
2 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,8 @@ The necessary bits are:
|
|||
|
||||
Downstream consumers may use either the static or dynamic library, as they prefer.
|
||||
|
||||
NOTE: on Windows, the "BCrypt" library must be included when linking to taskchampion.
|
||||
|
||||
## Documentation Generation
|
||||
|
||||
The `mdbook` configuration contains a "preprocessor" implemented in the `taskchampion-cli` crate in order to reflect CLI usage information into the generated book.
|
||||
|
|
|
@ -19,6 +19,11 @@ fn link_libtaskchampion() {
|
|||
let libtc_dir = libtc_dir.to_str().expect("path is valid utf-8");
|
||||
println!("cargo:rustc-link-search={}", libtc_dir);
|
||||
println!("cargo:rustc-link-lib=dylib=taskchampion");
|
||||
|
||||
// on windows, it appears that rust std requires BCrypt
|
||||
if cfg!(target_os = "windows") {
|
||||
println!("cargo:rustc-link-lib=dylib=bcrypt");
|
||||
}
|
||||
}
|
||||
|
||||
/// Build the Unity-based C test suite in `src/bindings_tests`, linking the result with this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue