Include path to MagickWand for easier building

This commit is contained in:
Nathan Fiedler
2015-12-23 11:34:51 -08:00
parent c2300b02cf
commit 0474886c14
2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@ repository = "https://github.com/nlfiedler/magick-rust.git"
readme = "README.md" readme = "README.md"
license = "Apache-2.0" license = "Apache-2.0"
keywords = ["magickwand", "imagemagick"] keywords = ["magickwand", "imagemagick"]
build = "build.rs"
[dependencies] [dependencies]
libc = "0.1.8" libc = "0.1.8"

8
build.rs Normal file
View File

@ -0,0 +1,8 @@
// build.rs
fn main() {
// For the sake of easily building and testing on Mac, include the path
// to MagickWand. Chances are MagickWand is in /usr/local/lib, or
// somewhere else that rustc can find it.
println!("cargo:rustc-link-search=native=/usr/local/lib");
}