Struct cpp_to_rust_common::cpp_lib_builder::CppLibBuilder
[−]
[src]
pub struct CppLibBuilder { pub cmake_source_dir: PathBuf, pub build_dir: PathBuf, pub install_dir: PathBuf, pub num_jobs: Option<usize>, pub build_type: BuildType, pub cmake_vars: Vec<CMakeVar>, }
Implements building a CMake-based C++ library.
Construct a value and call run()
to execute building.
Fields
cmake_source_dir: PathBuf
Path to the source directory containing CMake config file
build_dir: PathBuf
Path to the build directory (may not exist before building)
install_dir: PathBuf
Path to the install directory (may not exist before building)
num_jobs: Option<usize>
Number of threads used to build the library. If None
is supplied,
number of threads will be detected automatically.
build_type: BuildType
CMake build type (Debug or Release)
cmake_vars: Vec<CMakeVar>
Additional variables passed to CMake
Methods
impl CppLibBuilder
[src]
Trait Implementations
impl Debug for CppLibBuilder
[src]
impl Clone for CppLibBuilder
[src]
fn clone(&self) -> CppLibBuilder
[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