![]() |
bob.hpp
|
Configuration for rebuilding the current executable. More...
#include <bob.hpp>
Public Member Functions | |
RebuildConfig ()=default | |
Create an empty rebuild configuration. | |
RebuildConfig (vector< string > &&parts) | |
Create a rebuild configuration with the given parts. | |
Cmd | cmd (string source="bob.cpp", string program="bob") const |
Configuration for rebuilding the current executable.
This class allows specifying how to rebuild the current executable parts
is a vector of strings that represent the command line parts. The special strings _PROGRAM_
and _SOURCE_
can be used to represent the program name and source file name respectively. By default, these are set to "bob" and "bob.cpp".
GO_REBUILD_YOURSELF
macro. To customize the rebuild command in used by the macro, you can define BOB_REBUILD_CMD
before including the bob.hpp
header file.Cmd bob::RebuildConfig::cmd | ( | string | source = "bob.cpp" , |
string | program = "bob" |
||
) | const |
Create a Cmd
object from this configuration. The _PROGRAM_
and _SOURCE_
placeholders will be replaced with the provided program
and source
arguments.