[][src]Struct ritual_common::cpp_lib_builder::CppLibBuilder

pub struct CppLibBuilder {
    pub cmake_source_dir: PathBuf,
    pub build_dir: PathBuf,
    pub install_dir: Option<PathBuf>,
    pub num_jobs: Option<usize>,
    pub build_type: BuildType,
    pub cmake_vars: Vec<CMakeVar>,
    pub capture_output: bool,
    pub skip_cmake: bool,
    pub skip_cmake_after_first_run: bool,
}

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: boolskip_cmake: boolskip_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]

impl Debug for CppLibBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Inspect for T where
    T: Debug
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.