[−][src]Function autotools::build
pub fn build<P: AsRef<Path>>(path: P) -> PathBuf
Builds the native library rooted at path
with the default configure options.
This will return the directory in which the library was installed.
Examples
use autotools; // Builds the project in the directory located in `libfoo`, installing it // into $OUT_DIR let dst = autotools::build("libfoo"); println!("cargo:rustc-link-search=native={}", dst.display()); println!("cargo:rustc-link-lib=static=foo");