CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
system.hpp
Go to the documentation of this file.
1
23#ifndef __CBUILD_SYSTEM_HPP__
24#define __CBUILD_SYSTEM_HPP__
25// C++ libraries
26#include "string"
27#include "vector"
28// Code
29namespace CBuild {
36int system(std::string cmd);
44std::string system_piped(std::string cmd, unsigned int buffsize);
50std::vector<std::string>* get_log();
54void disable_system();
58void enable_system();
65} // namespace CBuild
66#endif // __CBUILD_SYSTEM_HPP__
Filebuffer for CBuild ecosystem.
Definition Build.hpp:34
bool is_system_enabled()
Check if CBuild::system enabled.
Definition system.cpp:83
std::vector< std::string > * get_log()
Get the internall command log.
Definition system.cpp:74
void enable_system()
Reanable system commands execution, used only in pkg-config.
Definition system.cpp:80
void disable_system()
Disable system commands execution.
Definition system.cpp:77
int system(std::string cmd)
Call stdlib system() and print cmd to shell.
Definition system.cpp:47
std::string system_piped(std::string cmd, unsigned int buffsize)
Execute command and return it's output.
Definition system.cpp:58