[−][src]Struct ritual_common::cpp_lib_builder::CppLibBuilder
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: Option<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
capture_output: bool
skip_cmake: bool
skip_cmake_after_first_run: bool
Methods
impl CppLibBuilder
[src]
pub fn run(&mut self) -> Result<CppLibBuilderOutput>
[src]
Builds the library.
Trait Implementations
impl Clone for CppLibBuilder
[src]
fn clone(&self) -> CppLibBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CppLibBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for CppLibBuilder
impl Send for CppLibBuilder
impl Sync for CppLibBuilder
impl Unpin for CppLibBuilder
impl UnwindSafe for CppLibBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Inspect for T where
T: Debug,
[src]
T: Debug,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,