summaryrefslogtreecommitdiff
path: root/rust/build.rs
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-12-17 15:50:27 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-12-17 16:00:19 +0100
commit8ceac0236c555979a9172c69c1a9e895d7487d6f (patch)
tree390740422d514ac62bc572d61c64e7375f2d7a27 /rust/build.rs
parentf355162fde31a4c79b7e665b43cef2de3ba05cb5 (diff)
downloadauth-xmppmessage-8ceac0236c555979a9172c69c1a9e895d7487d6f.tar.gz
auth-xmppmessage-8ceac0236c555979a9172c69c1a9e895d7487d6f.zip
replace all with subdirectory rust/
Diffstat (limited to 'rust/build.rs')
-rw-r--r--rust/build.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/rust/build.rs b/rust/build.rs
deleted file mode 100644
index 10c0d21..0000000
--- a/rust/build.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-extern crate gcc;
-
-use std::env;
-
-fn main() {
- let target = env::var("TARGET").unwrap();
- println!("cargo:rustc-link-lib=strophe");
-
- let mut config = gcc::Config::new();
- config.file("clib/sendxmpp.c");
- if target.contains("freebsd") {
- println!("cargo:rustc-link-search=native=/usr/local/lib");
- config.include("/usr/local/include");
- } else if target.contains("linux") {
- // ok pass
- } else {
- println!("Unknown OS, need to adapt build.rs");
- std::process::exit(1);
- }
- config.compile("libsendxmpp.a");
-}