Commit graph

9 commits

Author SHA1 Message Date
Nathan Fiedler
eec7998d25 Use new rust-bindgen crate for faster builds
Rather than cloning the bindgen repository and building from source, use
the packaged crate. The result is the rebuilds are much, much faster.
Also, had to make numerous changes for the new version of bindgen.

cargo test passes
2016-08-14 21:23:05 -07:00
Nathan Fiedler
96071ca377 Use Result.expect() in the suitable cases 2016-07-14 19:12:27 -07:00
Mattis Marjak
df6f812cf9 fix ldflags in build.rs 2016-05-17 22:18:17 +03:00
Mattis Marjak
c08a093dc3 cross-compile support for build.rs 2016-05-16 18:57:06 +03:00
Mattis Marjak
85a4b97b70 place generated files in OUT_DIR 2016-05-11 16:52:15 +03:00
Nathan Fiedler
3732fd5747 Report missing MagickWand-config in build.rs
Since build.rs requires MagickWand-config, make an effort to determine
if the executable is available or not, and panic with a clear course of
action. Otherwise the error is rather cryptic.

Fixes #3

cargo test passes
2016-03-23 18:00:52 -07:00
Nathan Fiedler
856a9e7c78 Handle building on macos a little better
First, only add the special environment variable when building on Mac OS
X. Second, look for the path to ensure the Xcode command line tools are
installed, and panic if that is not the case.

cargo test passes
2016-03-22 20:56:09 -07:00
Nathan Fiedler
04e1052266 Automatically build ImageMagick bindings
Leave the generated bindings out of the source repository and instead
have Cargo automatically build them if they are missing. This allows the
version of MagickWand to be incorporated into the bindings
automatically. For instance, in Homebrew the version is 6.Q16, while on
FreeBSD 10.2 it is 6.9, and only be generating the bindings for each
system can we ensure a smooth compilation process.
2016-01-25 19:58:43 -08:00
Nathan Fiedler
0474886c14 Include path to MagickWand for easier building 2015-12-23 11:34:51 -08:00