gwenhywfar  5.10.1
Macros | Functions
gwenbuild/main.c File Reference
#include "gwenbuild/parser/parser.h"
#include "gwenbuild/filenames.h"
#include "utils.h"
#include "c_setup.h"
#include "c_prepare.h"
#include "c_build.h"
#include "c_install.h"
#include "c_clean.h"
#include "c_dist.h"
#include <gwenhywfar/gwenhywfar.h>
#include <gwenhywfar/cgui.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/args.h>
#include <gwenhywfar/i18n.h>
#include <gwenhywfar/text.h>
#include <gwenhywfar/directory.h>
#include <unistd.h>
Include dependency graph for gwenbuild/main.c:

Go to the source code of this file.

Macros

#define ARGS_COMMAND_BUILD   0x0004
 
#define ARGS_COMMAND_CLEAN   0x0020
 
#define ARGS_COMMAND_DIST   0x0040
 
#define ARGS_COMMAND_INSTALL   0x0010
 
#define ARGS_COMMAND_PREPARE   0x0002
 
#define ARGS_COMMAND_REPEAT_SETUP   0x0008
 
#define ARGS_COMMAND_SETUP   0x0001
 
#define I18N(msg)   GWEN_I18N_Translate(PACKAGE, msg)
 
#define I18S(msg)   msg
 

Functions

static int _handleStringArgument (int argc, char **argv, int *pIndex, const char *sArg, const char *sArgId, const char *sVarName, GWEN_DB_NODE *db)
 
static void _printHelpScreen ()
 
static int _readArgsIntoDb (int argc, char **argv, GWEN_DB_NODE *db)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ ARGS_COMMAND_BUILD

#define ARGS_COMMAND_BUILD   0x0004

Definition at line 47 of file gwenbuild/main.c.

Referenced by main().

◆ ARGS_COMMAND_CLEAN

#define ARGS_COMMAND_CLEAN   0x0020

Definition at line 50 of file gwenbuild/main.c.

Referenced by main().

◆ ARGS_COMMAND_DIST

#define ARGS_COMMAND_DIST   0x0040

Definition at line 51 of file gwenbuild/main.c.

Referenced by main().

◆ ARGS_COMMAND_INSTALL

#define ARGS_COMMAND_INSTALL   0x0010

Definition at line 49 of file gwenbuild/main.c.

Referenced by main().

◆ ARGS_COMMAND_PREPARE

#define ARGS_COMMAND_PREPARE   0x0002

Definition at line 46 of file gwenbuild/main.c.

Referenced by main().

◆ ARGS_COMMAND_REPEAT_SETUP

#define ARGS_COMMAND_REPEAT_SETUP   0x0008

Definition at line 48 of file gwenbuild/main.c.

Referenced by main().

◆ ARGS_COMMAND_SETUP

#define ARGS_COMMAND_SETUP   0x0001

Definition at line 45 of file gwenbuild/main.c.

Referenced by main().

◆ I18N

#define I18N (   msg)    GWEN_I18N_Translate(PACKAGE, msg)

Definition at line 41 of file gwenbuild/main.c.

◆ I18S

#define I18S (   msg)    msg

Definition at line 42 of file gwenbuild/main.c.

Function Documentation

◆ _handleStringArgument()

int _handleStringArgument ( int  argc,
char **  argv,
int *  pIndex,
const char *  sArg,
const char *  sArgId,
const char *  sVarName,
GWEN_DB_NODE db 
)
static

Definition at line 243 of file gwenbuild/main.c.

References DBG_ERROR, GWEN_DB_FLAGS_DEFAULT, GWEN_DB_SetCharValue(), GWEN_ERROR_INVALID, and NULL.

Referenced by _readArgsIntoDb().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _printHelpScreen()

void _printHelpScreen ( )
static

Definition at line 365 of file gwenbuild/main.c.

References GWENHYWFAR_VERSION_FULL_STRING.

Referenced by _readArgsIntoDb().

Here is the caller graph for this function:

◆ _readArgsIntoDb()

int _readArgsIntoDb ( int  argc,
char **  argv,
GWEN_DB_NODE db 
)
static

Definition at line 264 of file gwenbuild/main.c.

References _handleStringArgument(), _printHelpScreen(), DBG_ERROR, GWEN_DB_FLAGS_OVERWRITE_VARS, GWEN_DB_SetCharValue(), GWEN_DB_SetIntValue(), GWEN_ERROR_GENERIC, GWEN_ERROR_INVALID, and NULL.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)