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

Path to the source directory containing CMake config file

Path to the build directory (may not exist before building)

Path to the install directory (may not exist before building)

Number of threads used to build the library. If None is supplied, number of threads will be detected automatically.

CMake build type (Debug or Release)

Additional variables passed to CMake

Methods

impl CppLibBuilder
[src]

[src]

Builds the library.

Trait Implementations

impl Debug for CppLibBuilder
[src]

[src]

Formats the value using the given formatter.

impl Clone for CppLibBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more