autotools/configure&make support for build.rs
A build dependency to compile a native library that uses autotools or
a compatible configure
script + make
.
It is based on cmake-rs and the API tries to be as similar as possible to it.
For Emscripten targets like "wasm32-unknown-emscripten", configure
and
make
invocations are passed as arguments to emconfigure
and emmake
respectively as described in the Emscripten docs.
# Cargo.toml
[]
= "0.2"
// build.rs
use autotools;
// Build the project in the path `foo` and installs it in `$OUT_DIR`
let dst = build;
// Simply link the library without using pkg-config
println!;
println!;
// build.rs
use Config;
let dst = new
.reconf
.enable
.with
.disable
.without
.cflag
.build;