#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

#18 in Build Utils

Download history 10/week @ 2018-11-10 5/week @ 2018-11-17 32/week @ 2018-11-24 7/week @ 2018-12-01 3/week @ 2018-12-08 9/week @ 2018-12-15 22/week @ 2018-12-22 1/week @ 2018-12-29 7/week @ 2019-01-05 117/week @ 2019-01-12 163/week @ 2019-01-19 47/week @ 2019-01-26 78/week @ 2019-02-02 63/week @ 2019-02-09 33/week @ 2019-02-16

197 downloads per month
Used in 8 crates (4 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