#build-dependencies

autotools

A build dependency to build native libraries that use configure&make-style build systems

7 releases

0.2.1 Feb 23, 2019
0.2.0 Feb 23, 2019
0.1.4 Feb 11, 2019
0.1.3 Jan 13, 2019
0.1.2 Mar 11, 2018

#13 in Build Utils

Download history 101/week @ 2019-01-15 161/week @ 2019-01-22 41/week @ 2019-01-29 93/week @ 2019-02-05 49/week @ 2019-02-12 50/week @ 2019-02-19 49/week @ 2019-02-26 169/week @ 2019-03-05 80/week @ 2019-03-12 41/week @ 2019-03-19 57/week @ 2019-03-26 16/week @ 2019-04-02 13/week @ 2019-04-09 13/week @ 2019-04-16 36/week @ 2019-04-23

307 downloads per month
Used in 10 crates (6 directly)

MIT license

17KB
284 lines

autotools/configure&make support for build.rs

LICENSE dependency status crates.io docs.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.

# Cargo.toml
[build-dependencies]
autotools = "0.2"
// build.rs
use autotools;

// Build the project in the path `foo` and installs it in `$OUT_DIR`
let dst = autotools::build("foo");

// Simply link the library without using pkg-config
println!("cargo:rustc-link-search=native={}", dst.display());
println!("cargo:rustc-link-lib=static=foo");
// build.rs
use autotools::Config;

let dst = Config::new("foo")
    .reconf("-ivf")
    .enable("feature", None)
    .with("dep", None)
    .disable("otherfeature", None)
    .without("otherdep", None)
    .cflag("-Wall")
    .build();

Dependencies

~112KB