CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
CBuild::CBuildDependency Class Reference

#include <cbuild_dep.hpp>

Inheritance diagram for CBuild::CBuildDependency:
CBuild::Dependency

Public Member Functions

 CBuildDependency (std::string path, std::string target_id, std::string headers_dir)
 
bool need_prepare () override
 
std::string cargs () override
 
std::string largs () override
 
void prepare () override
 
void compile (std::string str)
 

Protected Attributes

std::string path
 
std::string target_id
 
std::string headers_dir
 

Detailed Description

Definition at line 36 of file cbuild_dep.hpp.

Constructor & Destructor Documentation

◆ CBuildDependency()

CBuild::CBuildDependency::CBuildDependency ( std::string path,
std::string target_id,
std::string headers_dir )
inline

Definition at line 43 of file cbuild_dep.hpp.

References headers_dir, path, and target_id.

Member Function Documentation

◆ cargs()

std::string CBuild::CBuildDependency::cargs ( )
inlineoverridevirtual

Implements CBuild::Dependency.

Definition at line 57 of file cbuild_dep.hpp.

References CBUILD_CACHE_DIR, and CBUILD_PROJECT_DEPS_HEADERS.

◆ compile()

void CBuild::CBuildDependency::compile ( std::string str)
inline

Definition at line 131 of file cbuild_dep.hpp.

References CBuild::exit(), CBuild::print(), CBuild::RED, and CBuild::system().

Referenced by prepare().

◆ largs()

std::string CBuild::CBuildDependency::largs ( )
inlineoverridevirtual

◆ need_prepare()

bool CBuild::CBuildDependency::need_prepare ( )
inlineoverridevirtual

◆ prepare()

void CBuild::CBuildDependency::prepare ( )
inlineoverridevirtual

Member Data Documentation

◆ headers_dir

std::string CBuild::CBuildDependency::headers_dir
protected

Definition at line 40 of file cbuild_dep.hpp.

Referenced by CBuildDependency().

◆ path

std::string CBuild::CBuildDependency::path
protected

Definition at line 38 of file cbuild_dep.hpp.

Referenced by CBuildDependency().

◆ target_id

std::string CBuild::CBuildDependency::target_id
protected

Definition at line 39 of file cbuild_dep.hpp.

Referenced by CBuildDependency().


The documentation for this class was generated from the following file: