summaryrefslogtreecommitdiff
path: root/libssh2-sys/build.rs
AgeCommit message (Collapse)Author
2021-02-01Expose libssh2_trace function (#209)Mike Harris
* Expose libssh2_trace function and associated constants, to allow enabling libssh2 trace output. * set LIBSSH2_WIN32 on windows build so that gettimeofday replacement will be compiled. * libssh2_trace actually returns int, even though the documentation says it returns void. This was causing systest to fail. Changed the FFI to match the C function. Co-authored-by: eharmic <michael.harris@ericsson.com>
2020-08-18libssh2-sys: Add support for zlib-ng (#197)Josh Triplett
Update to libz-sys 1.1.0, which supports zlib-ng. Provide a feature zlib-ng-compat to allow building with zlib-ng. Since doing so statically links zlib-ng, ensure that this feature prevents using a system libssh2.
2020-04-26revert #170Wez Furlong
This caused fairly widespread problems and it seems that the original issue that led to this change (https://github.com/rust-lang/rust/issues/69552) should really be fixed by better defining the data exported from eg: libz-sys rather than having downstream crates replicating the same logic from inside that crate. refs: https://github.com/alexcrichton/ssh2-rs/issues/174 refs: https://github.com/alexcrichton/ssh2-rs/pull/170 refs: https://github.com/alexcrichton/ssh2-rs/issues/169 refs: https://github.com/rust-lang/rust/issues/69552
2020-04-25build: Announce environment variable usage to Cargochrysn
This was primarily done to address issues from changing LIBSSH_SYS_USE_PKG_CONFIG, but it's good build script practice to let Cargo know of every used environment variable. Closes: https://github.com/alexcrichton/ssh2-rs/issues/171
2020-04-25vcpkg: Support openssl 1.1 linkageoblique
2020-03-04attempt to use pkg-config to get include path for zlib and openssl if not ↵Mark Karpeles
set in env
2019-09-15link with ntdllWez Furlong
2019-09-15more experimenting to find vs and windows versions with RtlGetVersionWez Furlong
2019-09-15more fun with windows versionsWez Furlong
2019-09-15add ntoskrnl on windows as wellWez Furlong
hopefully this will make the i686 build a little happier on appveyor
2019-09-15link ntdll on windows for RtlGetVersionWez Furlong
2019-07-29cargo fmtWez Furlong
No functional changes, just formatting
2019-04-18Define HAVE_POLL for everything except for Windows (#111)Marton Suranyi
Fixes #110
2019-01-22Define HAVE_POLL for Haiku (#103)Niels Sascha Reedijk
This change is required to compile session.c
2019-01-02Define LIBSSH2_DH_GEX_NEW to avoid KEX error (#100)Brian Olsen
When LIBSSH2_DH_GEX_NEW is not defined LIBSSH2 will use an old diffie-hellman-group-exchange-sha1 syntax that has been removed from newer versions of OpenSSH.
2018-09-13Remove `cmake` dependency in favor of `cc` (#94)Alex Crichton
* Remove `cmake` dependency in favor of `cc` This has been done in a few other projects and has made it lightyears easier to compile native C code, so let's do it here! More info at alexcrichton/curl-rust#225
2018-08-06Don't enable zlib compression on WindowsAlex Crichton
I don't really want to futz with pkg-config, building on all platforms is a nightmare.
2018-07-02Add comment about loading two copies of libsslTim
2018-06-18Add LIBSSH2_SYS_USE_PKG_CONFIG env varTim
The latest actual release of libssh2 is old and broken. This uses the submodule instead unless you set `LIBSSH2_SYS_USE_PKG_CONFIG`. The mechanism is copied from libgit2.
2017-07-29Support Homebrew's OpenSSLKornel
2017-05-24optionally use libssh2 from vcpkg for msvc abi buildsJim McGrath
2016-11-09Set the DEP_OPENSSL_ROOT varAlex Crichton
2016-11-09Read INCLUDE vars as well as ROOTAlex Crichton
Help update for openssl-sys crate release
2016-04-08Test for .git directoryAlex Crichton
2016-04-08Add a missing importAlex Crichton
2016-04-08Check out submodule if it doesn't exist in devAlex Crichton
2015-11-18Parse include dir from openssl differentlyAlex Crichton
2015-11-16Apparently this is no longer necessary for MSVC?Alex Crichton
Seems to cause cmake to choke regardless unfortunately.
2015-11-03Fix compile on WindowsAlex Crichton
2015-10-13Define OPENSSL_INCLUDE_DIR if availableAlex Crichton
Helps with nonstandard install locations of openssl
2015-08-18Add back logic for PKG_CONFIG_PATHAlex Crichton
Some CMake invocations will attempt to find libraries like OpenSSL through pkg-config and these may have been built into a custom location, so be sure to set up PKG_CONFIG_PATH to point to them.
2015-08-13Add back zlib-removal from pc fileAlex Crichton
2015-07-31Fix LIBDIRAlex Crichton
2015-07-31Comment the new build scriptAlex Crichton
2015-07-31Pick up the zlib include dirAlex Crichton
2015-07-31Force zlib to be found on mingwAlex Crichton
2015-07-31Really fix lib name on windowsAlex Crichton
2015-07-31No let's really build zlib, we depend on itAlex Crichton
2015-07-31Remove unused macroAlex Crichton
2015-07-31Fix link name on windowsAlex Crichton
2015-07-31Disable zlib on all windowsAlex Crichton
2015-07-31Don't require zlib on msvcAlex Crichton
2015-07-31Start using cmake to build libssh2Alex Crichton
2015-07-22Use gcc's support to find nmakeAlex Crichton
2015-06-29Print out include paths when found through pkg-configAlex Crichton
2015-06-02Overhaul the build on windowsAlex Crichton
* 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.
2015-05-27Specifically don't build the ssh2 toolAlex Crichton
It's not needed and sometimes the build can fail for obscure reason due to building a staticlib on some platforms.
2015-04-30Overhaul the build on windowsAlex Crichton
* 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.
2015-04-29Try to yet again fix libssh2 buildAlex Crichton
2015-04-29Don't let zlib end up in the pkg-config depsAlex Crichton
Ends up causing havoc on OSX