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.
This type contains one configuration item of CppBuildConfig
.
Methods
impl CppBuildConfigData
[src]
fn new() -> CppBuildConfigData
[src]
Constructs an empty object.
fn add_linked_lib<P: Into<String>>(&mut self, lib: P)
[src]
Adds a library for linking. Used as -l
option to the linker.
fn add_linked_framework<P: Into<String>>(&mut self, lib: P)
[src]
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)
[src]
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>,
[src]
Item: Into<String>,
Iter: IntoIterator<Item = Item>,
Adds multiple flags. See CppBuildConfigData::add_cpp_compiler_flag
.
fn set_library_type(&mut self, t: CppLibraryType)
[src]
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]
[src]
Returns names of linked libraries.
fn linked_frameworks(&self) -> &[String]
[src]
Returns names of linked frameworks.
fn compiler_flags(&self) -> &[String]
[src]
Returns C++ compiler flags.
fn library_type(&self) -> Option<CppLibraryType>
[src]
Returns type of C++ wrapper libary (shared or static).
Trait Implementations
impl Debug for CppBuildConfigData
[src]
impl Clone for CppBuildConfigData
[src]
fn clone(&self) -> CppBuildConfigData
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for CppBuildConfigData
[src]
fn default() -> CppBuildConfigData
[src]
Returns the "default value" for a type. Read more