Struct vcpkg::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
Methods
impl Config
[src]
fn new() -> Config
fn statik(&mut self, statik: bool) -> &mut Config
Indicate whether to look for a static lib.
This will override the inference from environment variables described in the crate documentation.
fn lib_name(&mut self, lib_stem: &str) -> &mut Config
Override the name of the library to look for if it differs from the package name.
This may be called more than once if multiple libs are required.
All libs must be found for the probe to succeed. .probe()
must
be run with a different configuration to look for libraries under one of several names.
.libname("ssleay32")
will look for ssleay32.lib and also ssleay32.dll if
dynamic linking is selected.
fn lib_names(&mut self, lib_stem: &str, dll_stem: &str) -> &mut Config
Override the name of the library to look for if it differs from the package name.
This may be called more than once if multiple libs are required.
All libs must be found for the probe to succeed. .probe()
must
be run with a different configuration to look for libraries under one of several names.
.lib_names("libcurl_imp","curl")
will look for libcurl_imp.lib and also curl.dll if
dynamic linking is selected.
fn cargo_metadata(&mut self, cargo_metadata: bool) -> &mut Config
Define whether metadata should be emitted for cargo allowing it to
automatically link the binary. Defaults to true
.
fn copy_dlls(&mut self, copy_dlls: bool) -> &mut Config
Should DLLs be copied to OUT_DIR?
Defaults to true
.
fn probe(&mut self, port_name: &str) -> Result<Library, Error>
Find the library port_name
in a vcpkg tree.
This will use all configuration previously set to select the architecture and linkage.