mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 05:46:29 +03:00
simplify build
This commit is contained in:
11
build.rs
11
build.rs
@@ -1,9 +1,5 @@
|
|||||||
extern crate cc;
|
extern crate cc;
|
||||||
|
|
||||||
fn link_dylib(lib: &str) {
|
|
||||||
println!("cargo:rustc-link-lib=dylib={}", lib);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn link_static(lib: &str) {
|
fn link_static(lib: &str) {
|
||||||
println!("cargo:rustc-link-lib=static={}", lib);
|
println!("cargo:rustc-link-lib=static={}", lib);
|
||||||
}
|
}
|
||||||
@@ -35,13 +31,6 @@ fn main() {
|
|||||||
link_framework("CoreFoundation");
|
link_framework("CoreFoundation");
|
||||||
link_framework("CoreServices");
|
link_framework("CoreServices");
|
||||||
link_framework("Security");
|
link_framework("Security");
|
||||||
|
|
||||||
link_dylib("pthread");
|
|
||||||
} else if target.contains("-android") {
|
|
||||||
} else if target.contains("-linux") {
|
|
||||||
link_dylib("pthread");
|
|
||||||
} else {
|
|
||||||
panic!("unsupported target");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// local tools
|
// local tools
|
||||||
|
|||||||
Reference in New Issue
Block a user