Struct autotools::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Builder style configuration for a pending autotools build.
Methods
impl Config
[src]
pub fn new<P: AsRef<Path>>(path: P) -> Config
[src]
Creates a new blank set of configuration to build the project specified
at the path path
.
pub fn enable<P: AsRef<OsStr>>(
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
[src]
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
--enable-
pub fn disable<P: AsRef<OsStr>>(
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
[src]
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
--disable-
pub fn with<P: AsRef<OsStr>>(
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
[src]
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
--with-
pub fn without<P: AsRef<OsStr>>(
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
[src]
&mut self,
opt: P,
optarg: Option<P>
) -> &mut Config
--without-
pub fn cflag<P: AsRef<OsStr>>(&mut self, flag: P) -> &mut Config
[src]
Adds a custom flag to pass down to the C compiler, supplementing those that this library already passes.
pub fn cxxflag<P: AsRef<OsStr>>(&mut self, flag: P) -> &mut Config
[src]
Adds a custom flag to pass down to the C++ compiler, supplementing those that this library already passes.
pub fn target(&mut self, target: &str) -> &mut Config
[src]
Sets the target triple for this compilation.
This is automatically scraped from $TARGET
which is set for Cargo
build scripts so it's not necessary to call this from a build script.
pub fn host(&mut self, host: &str) -> &mut Config
[src]
Sets the host triple for this compilation.
This is automatically scraped from $HOST
which is set for Cargo
build scripts so it's not necessary to call this from a build script.
pub fn out_dir<P: AsRef<Path>>(&mut self, out: P) -> &mut Config
[src]
Sets the output directory for this compilation.
This is automatically scraped from $OUT_DIR
which is set for Cargo
build scripts so it's not necessary to call this from a build script.
pub fn env<K, V>(&mut self, key: K, value: V) -> &mut Config where
K: AsRef<OsStr>,
V: AsRef<OsStr>,
[src]
K: AsRef<OsStr>,
V: AsRef<OsStr>,
Configure an environment variable for the configure && make
processes
spawned by this crate in the build
step.
pub fn build(&mut self) -> PathBuf
[src]
Run this configuration, compiling the library with all the configured options.
This will run both the build system generator command as well as the command to build the library.