17 #define EX_SOFTWARE 70
48 const auto default_verbosity =
105 const std::list<std::string> &values=
108 for(std::list<std::string>::const_iterator
117 const std::list<std::string> &values=
120 for(std::list<std::string>::const_iterator
129 std::list<std::string>::iterator it;
131 std::cout <<
"Defines:\n";
136 std::cout <<
" " << (*it) <<
'\n';
139 std::cout <<
"Undefines:\n";
144 std::cout <<
" " << (*it) <<
'\n';
147 std::cout <<
"Preprocessor Options:\n";
152 std::cout <<
" " << (*it) <<
'\n';
155 std::cout <<
"Include Paths:\n";
160 std::cout <<
" " << (*it) <<
'\n';
163 std::cout <<
"Library Paths:\n";
168 std::cout <<
" " << (*it) <<
'\n';
171 std::cout <<
"Output file (object): "
173 std::cout <<
"Output file (executable): "
178 return compiler.
doit() ? EX_USAGE : EX_OK;
184 std::cout <<
"goto-cw understands the options of "
185 <<
"gcc (mwcc mode) plus the following.\n\n";
std::string get_value(char option) const
virtual bool isset(char option) const
const std::list< std::string > & get_values(const std::string &option) const
@ COMPILE_LINK_EXECUTABLE
std::string output_file_object
std::list< std::string > libraries
bool doit()
reads and source and object files, compiles and links them into goto program objects.
std::string object_file_extension
std::list< std::string > library_paths
std::string output_file_executable
bool set(const cmdlinet &cmdline)
struct configt::ansi_ct ansi_c
virtual int doit()
does it.
console_message_handlert message_handler
virtual void help_mode()
display command line help
const std::string base_name
void help()
display command line help
Class that provides messages with a built-in verbosity 'level'.
static unsigned eval_verbosity(const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest.
Compile and link source and object files.
bool has_prefix(const std::string &s, const std::string &prefix)
Base class for command line interpretation.
std::list< std::string > include_paths
std::list< std::string > undefines
std::list< std::string > preprocessor_options
std::list< std::string > defines