pub struct CMake { /* private fields */ }Expand description
CMake build system.
Handles projects built with CMake, using out-of-source builds.
Implementations§
Trait Implementations§
Source§impl BuildSystem for CMake
impl BuildSystem for CMake
Source§fn dist(
&self,
_session: &dyn Session,
_installer: &dyn Installer,
_target_directory: &Path,
_quiet: bool,
) -> Result<OsString, Error>
fn dist( &self, _session: &dyn Session, _installer: &dyn Installer, _target_directory: &Path, _quiet: bool, ) -> Result<OsString, Error>
Create a distribution package for the project. Read more
Source§fn build(
&self,
session: &dyn Session,
installer: &dyn Installer,
) -> Result<(), Error>
fn build( &self, session: &dyn Session, installer: &dyn Installer, ) -> Result<(), Error>
Build the project. Read more
Source§fn install(
&self,
session: &dyn Session,
installer: &dyn Installer,
_install_target: &InstallTarget,
) -> Result<(), Error>
fn install( &self, session: &dyn Session, installer: &dyn Installer, _install_target: &InstallTarget, ) -> Result<(), Error>
Install the project. Read more
Source§fn clean(
&self,
session: &dyn Session,
installer: &dyn Installer,
) -> Result<(), Error>
fn clean( &self, session: &dyn Session, installer: &dyn Installer, ) -> Result<(), Error>
Clean the project’s build artifacts. Read more
Source§fn get_declared_dependencies(
&self,
_session: &dyn Session,
_fixers: Option<&[&dyn BuildFixer<Error>]>,
) -> Result<Vec<(DependencyCategory, Box<dyn Dependency>)>, Error>
fn get_declared_dependencies( &self, _session: &dyn Session, _fixers: Option<&[&dyn BuildFixer<Error>]>, ) -> Result<Vec<(DependencyCategory, Box<dyn Dependency>)>, Error>
Get the dependencies declared by the build system. Read more
Source§fn test(
&self,
_session: &dyn Session,
_installer: &dyn Installer,
) -> Result<(), Error>
fn test( &self, _session: &dyn Session, _installer: &dyn Installer, ) -> Result<(), Error>
Run tests for the project. Read more
Source§fn get_declared_outputs(
&self,
_session: &dyn Session,
_fixers: Option<&[&dyn BuildFixer<Error>]>,
) -> Result<Vec<Box<dyn Output>>, Error>
fn get_declared_outputs( &self, _session: &dyn Session, _fixers: Option<&[&dyn BuildFixer<Error>]>, ) -> Result<Vec<Box<dyn Output>>, Error>
Get the outputs declared by the build system. Read more
Source§fn install_declared_dependencies(
&self,
categories: &[DependencyCategory],
scopes: &[InstallationScope],
session: &dyn Session,
installer: &dyn Installer,
fixers: Option<&[&dyn BuildFixer<InstallerError>]>,
) -> Result<(), Error>
fn install_declared_dependencies( &self, categories: &[DependencyCategory], scopes: &[InstallationScope], session: &dyn Session, installer: &dyn Installer, fixers: Option<&[&dyn BuildFixer<InstallerError>]>, ) -> Result<(), Error>
Install the dependencies declared by the build system. Read more
Auto Trait Implementations§
impl Freeze for CMake
impl RefUnwindSafe for CMake
impl Send for CMake
impl Sync for CMake
impl Unpin for CMake
impl UnsafeUnpin for CMake
impl UnwindSafe for CMake
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.