mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
fix linking for taskchampion-integration-tests
This commit is contained in:
parent
6a42cf00a2
commit
3dfd28586a
2 changed files with 5 additions and 4 deletions
|
@ -12,13 +12,14 @@ fn link_libtaskchampion() {
|
|||
// Shared libraries (crate-type=cdylib) appear to be placed in target/$PROFILE/deps.
|
||||
let mut libtc_dir = env::current_dir().unwrap();
|
||||
libtc_dir.pop();
|
||||
libtc_dir.pop();
|
||||
libtc_dir.push("target");
|
||||
libtc_dir.push(env::var("PROFILE").unwrap());
|
||||
libtc_dir.push("deps");
|
||||
|
||||
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=taskchampionlib");
|
||||
println!("cargo:rustc-link-lib=dylib=taskchampion_lib");
|
||||
|
||||
// on windows, it appears that rust std requires BCrypt
|
||||
if cfg!(target_os = "windows") {
|
||||
|
|
|
@ -3,9 +3,9 @@ name = "taskchampion-lib"
|
|||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
|
||||
#[lib]
|
||||
#name = "taskchampionlib"
|
||||
#crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
[lib]
|
||||
# staticlib is used for integration-tests, and is not exported.
|
||||
crate-type = ["cdylib", "lib"]
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2.126"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue