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

Generate Makefile from task/target, works as command logger. More...

#include <makefile.hpp>

Inheritance diagram for CBuild::makefile_out:
CBuild::generator_base

Public Member Functions

 makefile_out ()
 Create new Makefile generator.
 
virtual void generate (CBuild::RType mode, lib::map< std::string, std::string > *args, std::vector< std::string > *pargs) override
 Generate some output.
 
virtual bool init () override
 Some init.
 
- Public Member Functions inherited from CBuild::generator_base
 generator_base (std::string out)
 Create and save output file name.
 

Additional Inherited Members

- Protected Attributes inherited from CBuild::generator_base
std::string OUT
 

Detailed Description

Generate Makefile from task/target, works as command logger.

Definition at line 37 of file makefile.hpp.

Constructor & Destructor Documentation

◆ makefile_out()

CBuild::makefile_out::makefile_out ( )
inline

Create new Makefile generator.

Definition at line 42 of file makefile.hpp.

Member Function Documentation

◆ generate()

void CBuild::makefile_out::generate ( CBuild::RType mode,
lib::map< std::string, std::string > * args,
std::vector< std::string > * pargs )
overridevirtual

Generate some output.

Parameters
mode=> CBuild::RType -> CBuild arg
args=> lib::map<std::string, std::string>* -> CBuild arg
args=> std::vector<std::string>* -> Preprocessed args

Implements CBuild::generator_base.

Definition at line 40 of file generator.cpp.

References CBuild::BUILD, CBuild::BUILD_RUN, CBuild::CLEAR, CBuild::fs::create(), CBuild::DEBUG, CBuild::fs::exists(), CBuild::fs::FILE, lib::map< _K, _D >::get(), CBuild::get_log(), CBuild::get_random_string(), CBuild::log, CBuild::MAGENTA, CBuild::generator_base::OUT, CBuild::print(), CBuild::RUN, and CBuild::TASK.

◆ init()

bool CBuild::makefile_out::init ( )
overridevirtual

Some init.

Returns
bool -> Work as logger/capture execution thread (true/false)

Implements CBuild::generator_base.

Definition at line 98 of file generator.cpp.


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