-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.rs
35 lines (31 loc) · 1.1 KB
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// build.rs
extern crate cc;
fn main() {
cc::Build::new()
.flag_if_supported("-O3")
//.flag_if_supported("-D_GNU_SOURCE")
.flag_if_supported("-Wall")
.file("src/hapcut2/common.c")
.file("src/hapcut2/fragmatrix.c")
.file("src/hapcut2/readinputbuffers.c")
.file("src/hapcut2/pointerheap.c")
.file("src/hapcut2/hapcut2.c")
.file("src/hapcut2/logsum10.c")
.compile("hapcut2");
/*cc::Build::new()
.cpp(true)
.shared_flag(false)
.static_flag(true)
.flag_if_supported("-O3")
.flag_if_supported("-D_GNU_SOURCE")
.flag_if_supported("-Wall")
.flag_if_supported("-std=c++11")
.flag_if_supported("-Isrc/poa/spoa/include/")
.flag_if_supported("-Lsrc/poa/spoa/build/lib/")
.flag_if_supported("-lspoa")
.file("src/poa/poa_func.cpp")
.compile("poa_func");
println!("cargo:rustc-flags=-L src/poa/spoa/build/lib/ -L /home/pedge/anaconda3/envs/tscc/lib -l spoa");
*/
// println!("cargo:rustc-flags=-L /home/pedge/anaconda3/envs/tscc/lib");
}