Struct cargo_c::pkg_config_gen::PkgConfig
source · pub struct PkgConfig { /* private fields */ }
Implementations§
source§impl PkgConfig
impl PkgConfig
sourcepub fn new(_name: &str, capi_config: &CApiConfig) -> Self
pub fn new(_name: &str, capi_config: &CApiConfig) -> Self
Build a pkgconfig structure with the following defaults:
prefix=/usr/local exec_prefix=${prefix} includedir=${prefix}/include libdir=${exec_prefix}/lib
Name: $name Description: $description Version: $version Cflags: -I${includedir}/$name Libs: -L${libdir} -l$name
pub fn set_description<S: AsRef<str>>(&mut self, descr: S) -> &mut Self
pub fn set_libs<S: AsRef<str>>(&mut self, lib: S) -> &mut Self
pub fn add_lib<S: AsRef<str>>(&mut self, lib: S) -> &mut Self
pub fn set_libs_private<S: AsRef<str>>(&mut self, lib: S) -> &mut Self
pub fn add_lib_private<S: AsRef<str>>(&mut self, lib: S) -> &mut Self
pub fn set_cflags<S: AsRef<str>>(&mut self, flag: S) -> &mut Self
pub fn add_cflag<S: AsRef<str>>(&mut self, flag: S) -> &mut Self
pub fn render(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PkgConfig
impl Send for PkgConfig
impl Sync for PkgConfig
impl Unpin for PkgConfig
impl UnwindSafe for PkgConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more