Struct cpp_to_rust_common::cpp_build_config::CppBuildConfigData
[−]
[src]
pub struct CppBuildConfigData { /* fields omitted */ }
Platform-specific information required to build the C++ wrapper library.
Methods
impl CppBuildConfigData
[src]
fn new() -> CppBuildConfigData
fn add_linked_lib<P: Into<String>>(&mut self, lib: P)
Adds a library for linking. Used as -l
option to the linker.
fn add_linked_framework<P: Into<String>>(&mut self, lib: P)
Adds a framework for linking (OS X specific). Used as -f
option to the linker.
fn add_compiler_flag<P: Into<String>>(&mut self, lib: P)
Adds a command line argument for the C++ compiler.
fn add_compiler_flags<Item, Iter>(&mut self, items: Iter) where Item: Into<String>, Iter: IntoIterator<Item=Item>
Adds multiple flags. See CppBuildConfigData::add_cpp_compiler_flag
.
fn set_library_type(&mut self, t: CppLibraryType)
Sets library type. C++ wrapper is static by default. Shared library can be used to work around MSVC linker's limitations.
fn linked_libs(&self) -> &[String]
fn linked_frameworks(&self) -> &[String]
fn compiler_flags(&self) -> &[String]
fn library_type(&self) -> Option<CppLibraryType>
Trait Implementations
impl Default for CppBuildConfigData
[src]
fn default() -> CppBuildConfigData
Returns the "default value" for a type. Read more
impl Clone for CppBuildConfigData
[src]
fn clone(&self) -> CppBuildConfigData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more