-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b11353f
commit 5d2953a
Showing
13 changed files
with
907 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use std::env; | ||
use std::path::PathBuf; | ||
|
||
fn main() { | ||
let dir = env::var("CARGO_MANIFEST_DIR").unwrap(); | ||
let path = PathBuf::from(dir); | ||
|
||
// Specify the directory containing the .a files | ||
println!("cargo:rustc-link-search=native={}", path.display()); | ||
|
||
// Link against Compressor.a | ||
println!("cargo:rustc-link-lib=static=Compressor"); | ||
|
||
// Link against Trainer.a | ||
println!("cargo:rustc-link-lib=static=Trainer"); | ||
|
||
// Link against C++ standard library | ||
println!("cargo:rustc-link-lib=dylib=stdc++"); | ||
|
||
// Rerun the build script if the static libraries change | ||
println!("cargo:rerun-if-changed=libCompressor.a"); | ||
println!("cargo:rerun-if-changed=libTrainer.a"); | ||
} |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.