summaryrefslogtreecommitdiff
path: root/libssh2-sys/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-30 10:51:59 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-06-02 22:54:51 -0700
commit235bcbdb1d53ccea5c70b92febdd1a38044f67c8 (patch)
tree9df2a25fe2114c35efbf64fbac73f3bb5ff163ee /libssh2-sys/lib.rs
parent6e3a64889ff9eaf5577e6c394de2f6030e06569d (diff)
downloadssh2-rs-235bcbdb1d53ccea5c70b92febdd1a38044f67c8.zip
Overhaul the build on windows
* Have an entirely separate path for windows builds * Run `make install` on unix builds for libssh2 * On Windows, first detect whether `make` is available * Use the specific `win32/GNUmakefile` for windows instead of the standard configure/make procedure for unix. * Continue doing a manual install on Windows, but don't rely on `pkg-config` existing and don't emit a pkg-config file. One day this may support MSVC-based builds, but support is not added at this time.
Diffstat (limited to 'libssh2-sys/lib.rs')
-rw-r--r--libssh2-sys/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs
index 26c4e58..6ac80d4 100644
--- a/libssh2-sys/lib.rs
+++ b/libssh2-sys/lib.rs
@@ -3,8 +3,10 @@
extern crate libc;
+#[cfg(not(target_env = "msvc"))]
extern crate libz_sys;
-#[cfg(unix)] extern crate openssl_sys;
+#[cfg(unix)]
+extern crate openssl_sys;
use libc::{c_int, size_t, c_void, c_char, c_long, c_uchar, c_uint, c_ulong};
use libc::ssize_t;