gwenhywfar 5.10.1
Macros | Typedefs | Functions
buildcmd.h File Reference
#include <gwenhywfar/list.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/xml.h>
#include <gwenhywfar/process.h>
#include "gwenbuild/types/file.h"
#include "gwenbuild/types/keyvaluepair.h"
#include "gwenbuild/buildctx/buildsubcmd.h"
Include dependency graph for buildcmd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GWB_BUILD_CMD_FLAGS_AUTO   0x0010
 
#define GWB_BUILD_CMD_FLAGS_CHECK_DATES   0x0002
 
#define GWB_BUILD_CMD_FLAGS_DEL_OUTFILES   0x0008
 

Typedefs

typedef struct GWB_BUILD_CMD GWB_BUILD_CMD
 

Functions

void GWB_BuildCmd_AddBuildCommand (GWB_BUILD_CMD *bcmd, GWB_BUILD_SUBCMD *cmd)
 
void GWB_BuildCmd_AddFlags (GWB_BUILD_CMD *bcmd, uint32_t i)
 
void GWB_BuildCmd_AddInFile (GWB_BUILD_CMD *bcmd, GWB_FILE *file)
 
void GWB_BuildCmd_AddOutFile (GWB_BUILD_CMD *bcmd, GWB_FILE *file)
 
void GWB_BuildCmd_AddPrepareCommand (GWB_BUILD_CMD *bcmd, GWB_BUILD_SUBCMD *cmd)
 
int GWB_BuildCmd_DecBlockingFiles (GWB_BUILD_CMD *bcmd)
 
void GWB_BuildCmd_DelFlags (GWB_BUILD_CMD *bcmd, uint32_t i)
 
void GWB_BuildCmd_Dump (const GWB_BUILD_CMD *bcmd, int indent)
 
GWB_BUILD_CMDGWB_BuildCmd_dup (GWB_BUILD_CMD *bcmd)
 
void GWB_BuildCmd_free (GWB_BUILD_CMD *bcmd)
 
GWB_BUILD_CMDGWB_BuildCmd_fromXml (GWEN_XMLNODE *xmlNode, GWB_FILE_LIST2 *fileList)
 
int GWB_BuildCmd_GetBlockingFiles (const GWB_BUILD_CMD *bcmd)
 
GWB_BUILD_SUBCMD_LIST * GWB_BuildCmd_GetBuildCommandList (const GWB_BUILD_CMD *bcmd)
 
const char * GWB_BuildCmd_GetBuilderName (const GWB_BUILD_CMD *bcmd)
 
const char * GWB_BuildCmd_GetBuildMessage (const GWB_BUILD_CMD *bcmd)
 
GWB_BUILD_SUBCMDGWB_BuildCmd_GetCurrentCommand (const GWB_BUILD_CMD *bcmd)
 
GWEN_PROCESSGWB_BuildCmd_GetCurrentProcess (const GWB_BUILD_CMD *bcmd)
 
uint32_t GWB_BuildCmd_GetFlags (const GWB_BUILD_CMD *bcmd)
 
const char * GWB_BuildCmd_GetFolder (const GWB_BUILD_CMD *bcmd)
 
GWB_FILE_LIST2 * GWB_BuildCmd_GetInFileList2 (const GWB_BUILD_CMD *bcmd)
 
GWB_FILE_LIST2 * GWB_BuildCmd_GetOutFileList2 (const GWB_BUILD_CMD *bcmd)
 
GWB_BUILD_SUBCMD_LIST * GWB_BuildCmd_GetPrepareCommandList (const GWB_BUILD_CMD *bcmd)
 
int GWB_BuildCmd_IncBlockingFiles (GWB_BUILD_CMD *bcmd)
 
void GWB_BuildCmd_List2_FreeAll (GWB_BUILD_CMD_LIST2 *cmdList)
 
void GWB_BuildCmd_List2_WriteXml (const GWB_BUILD_CMD_LIST2 *cmdList, GWEN_XMLNODE *xmlNode, const char *groupName)
 
void GWB_BuildCmd_List_WriteXml (const GWB_BUILD_CMD_LIST *cmdList, GWEN_XMLNODE *xmlNode, const char *groupName)
 
GWB_BUILD_CMDGWB_BuildCmd_new (void)
 
void GWB_BuildCmd_PrintDescriptionWithText (const GWB_BUILD_CMD *bcmd, int indent, const char *text)
 
void GWB_BuildCmd_SetBlockingFiles (GWB_BUILD_CMD *bcmd, int i)
 
void GWB_BuildCmd_SetBuilderName (GWB_BUILD_CMD *bcmd, const char *s)
 
void GWB_BuildCmd_SetBuildMessage (GWB_BUILD_CMD *bcmd, const char *s)
 
void GWB_BuildCmd_SetCurrentCommand (GWB_BUILD_CMD *bcmd, GWB_BUILD_SUBCMD *cmd)
 
void GWB_BuildCmd_SetCurrentProcess (GWB_BUILD_CMD *bcmd, GWEN_PROCESS *process)
 
void GWB_BuildCmd_SetFlags (GWB_BUILD_CMD *bcmd, uint32_t i)
 
void GWB_BuildCmd_SetFolder (GWB_BUILD_CMD *bcmd, const char *s)
 
void GWB_BuildCmd_toXml (const GWB_BUILD_CMD *bcmd, GWEN_XMLNODE *xmlNode)
 
 GWEN_LIST2_FUNCTION_DEFS (GWB_BUILD_CMD, GWB_BuildCmd)
 
 GWEN_LIST_FUNCTION_DEFS (GWB_BUILD_CMD, GWB_BuildCmd)
 

Macro Definition Documentation

◆ GWB_BUILD_CMD_FLAGS_AUTO

#define GWB_BUILD_CMD_FLAGS_AUTO   0x0010

Definition at line 27 of file buildcmd.h.

◆ GWB_BUILD_CMD_FLAGS_CHECK_DATES

#define GWB_BUILD_CMD_FLAGS_CHECK_DATES   0x0002

Definition at line 25 of file buildcmd.h.

◆ GWB_BUILD_CMD_FLAGS_DEL_OUTFILES

#define GWB_BUILD_CMD_FLAGS_DEL_OUTFILES   0x0008

Definition at line 26 of file buildcmd.h.

Typedef Documentation

◆ GWB_BUILD_CMD

typedef struct GWB_BUILD_CMD GWB_BUILD_CMD

Definition at line 20 of file buildcmd.h.

Function Documentation

◆ GWB_BuildCmd_AddBuildCommand()

void GWB_BuildCmd_AddBuildCommand ( GWB_BUILD_CMD bcmd,
GWB_BUILD_SUBCMD cmd 
)

Definition at line 217 of file buildcmd.c.

Referenced by GWB_ParseBuildFiles().

Here is the caller graph for this function:

◆ GWB_BuildCmd_AddFlags()

void GWB_BuildCmd_AddFlags ( GWB_BUILD_CMD bcmd,
uint32_t  i 
)

Definition at line 134 of file buildcmd.c.

Referenced by _addBuildCmd(), _addCommands(), _parseBuildCmd(), _parseBuildCommand(), and _parseSubCmd().

Here is the caller graph for this function:

◆ GWB_BuildCmd_AddInFile()

void GWB_BuildCmd_AddInFile ( GWB_BUILD_CMD bcmd,
GWB_FILE file 
)

Definition at line 262 of file buildcmd.c.

Referenced by GWB_BuildCtx_AddInFileToCtxAndCmd().

Here is the caller graph for this function:

◆ GWB_BuildCmd_AddOutFile()

void GWB_BuildCmd_AddOutFile ( GWB_BUILD_CMD bcmd,
GWB_FILE file 
)

Definition at line 277 of file buildcmd.c.

Referenced by GWB_BuildCtx_AddOutFileToCtxAndCmd().

Here is the caller graph for this function:

◆ GWB_BuildCmd_AddPrepareCommand()

void GWB_BuildCmd_AddPrepareCommand ( GWB_BUILD_CMD bcmd,
GWB_BUILD_SUBCMD cmd 
)

Definition at line 203 of file buildcmd.c.

◆ GWB_BuildCmd_DecBlockingFiles()

int GWB_BuildCmd_DecBlockingFiles ( GWB_BUILD_CMD bcmd)

Definition at line 245 of file buildcmd.c.

Referenced by _decBlockingFilesInWaitingBuildCommands().

Here is the caller graph for this function:

◆ GWB_BuildCmd_DelFlags()

void GWB_BuildCmd_DelFlags ( GWB_BUILD_CMD bcmd,
uint32_t  i 
)

Definition at line 141 of file buildcmd.c.

◆ GWB_BuildCmd_Dump()

void GWB_BuildCmd_Dump ( const GWB_BUILD_CMD bcmd,
int  indent 
)

Definition at line 571 of file buildcmd.c.

References GWBUILD_Debug_PrintFileList2(), GWBUILD_Debug_PrintIntValue(), GWBUILD_Debug_PrintKvpList(), and GWBUILD_Debug_PrintValue().

Referenced by GWBUILD_Debug_PrintBuildCmdList2().

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

◆ GWB_BuildCmd_dup()

GWB_BUILD_CMD * GWB_BuildCmd_dup ( GWB_BUILD_CMD bcmd)

Definition at line 60 of file buildcmd.c.

References GWB_BuildSubCmd_List_dup(), GWEN_LIST_INIT, GWEN_NEW_OBJECT, and NULL.

Referenced by _addBuildCommands().

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

◆ GWB_BuildCmd_free()

void GWB_BuildCmd_free ( GWB_BUILD_CMD bcmd)

Definition at line 97 of file buildcmd.c.

References GWB_BuildCmd_SetCurrentCommand(), GWB_BuildCmd_SetCurrentProcess(), GWEN_FREE_OBJECT, GWEN_LIST_FINI, and NULL.

Referenced by _parseBuildCmd(), GWB_BuildCmd_List2_FreeAll(), and GWB_ParseBuildFiles().

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

◆ GWB_BuildCmd_fromXml()

GWB_BUILD_CMD * GWB_BuildCmd_fromXml ( GWEN_XMLNODE xmlNode,
GWB_FILE_LIST2 *  fileList 
)

◆ GWB_BuildCmd_GetBlockingFiles()

int GWB_BuildCmd_GetBlockingFiles ( const GWB_BUILD_CMD bcmd)

Definition at line 224 of file buildcmd.c.

Referenced by _checkWaitingQueue().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetBuildCommandList()

GWB_BUILD_SUBCMD_LIST * GWB_BuildCmd_GetBuildCommandList ( const GWB_BUILD_CMD bcmd)

Definition at line 210 of file buildcmd.c.

Referenced by _addBuildCommands(), and _setupCommands().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetBuilderName()

const char * GWB_BuildCmd_GetBuilderName ( const GWB_BUILD_CMD bcmd)

Definition at line 148 of file buildcmd.c.

Referenced by GWB_BuildCtx_AddBuildCmdsByBuilderNameToList(), and GWB_BuildCtx_AddBuildCmdsForFileToList().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetBuildMessage()

const char * GWB_BuildCmd_GetBuildMessage ( const GWB_BUILD_CMD bcmd)

Definition at line 181 of file buildcmd.c.

◆ GWB_BuildCmd_GetCurrentCommand()

GWB_BUILD_SUBCMD * GWB_BuildCmd_GetCurrentCommand ( const GWB_BUILD_CMD bcmd)

◆ GWB_BuildCmd_GetCurrentProcess()

GWEN_PROCESS * GWB_BuildCmd_GetCurrentProcess ( const GWB_BUILD_CMD bcmd)

Definition at line 285 of file buildcmd.c.

Referenced by _checkRunningQueue().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetFlags()

uint32_t GWB_BuildCmd_GetFlags ( const GWB_BUILD_CMD bcmd)

Definition at line 120 of file buildcmd.c.

Referenced by _needRunCurrentCommand(), _startCommand(), and GWB_BuildCtx_AddBuildCmdsByBuilderNameToList().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetFolder()

const char * GWB_BuildCmd_GetFolder ( const GWB_BUILD_CMD bcmd)

Definition at line 166 of file buildcmd.c.

Referenced by _checkDependencies(), _startCommand(), and GWB_BuildCmd_PrintDescriptionWithText().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetInFileList2()

GWB_FILE_LIST2 * GWB_BuildCmd_GetInFileList2 ( const GWB_BUILD_CMD bcmd)

Definition at line 255 of file buildcmd.c.

Referenced by _addBuildCommands(), _checkWaitingQueue(), _parseBuildInputFiles(), _prepareCmdDb(), and _setupDepsForCmd().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetOutFileList2()

GWB_FILE_LIST2 * GWB_BuildCmd_GetOutFileList2 ( const GWB_BUILD_CMD bcmd)

Definition at line 270 of file buildcmd.c.

Referenced by _addBuildCommands(), _checkWaitingQueue(), _parseBuildOutputFiles(), _prepareCmdDb(), _setBuildCmdInFiles(), and _signalJobFinished().

Here is the caller graph for this function:

◆ GWB_BuildCmd_GetPrepareCommandList()

GWB_BUILD_SUBCMD_LIST * GWB_BuildCmd_GetPrepareCommandList ( const GWB_BUILD_CMD bcmd)

Definition at line 196 of file buildcmd.c.

Referenced by _addPrepareCommands(), and _setupCommands().

Here is the caller graph for this function:

◆ GWB_BuildCmd_IncBlockingFiles()

int GWB_BuildCmd_IncBlockingFiles ( GWB_BUILD_CMD bcmd)

Definition at line 238 of file buildcmd.c.

Referenced by _setupDepsForCmd().

Here is the caller graph for this function:

◆ GWB_BuildCmd_List2_FreeAll()

void GWB_BuildCmd_List2_FreeAll ( GWB_BUILD_CMD_LIST2 *  cmdList)

Definition at line 548 of file buildcmd.c.

References GWB_BuildCmd_free().

Referenced by GWB_BuildCtx_free().

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

◆ GWB_BuildCmd_List2_WriteXml()

void GWB_BuildCmd_List2_WriteXml ( const GWB_BUILD_CMD_LIST2 *  cmdList,
GWEN_XMLNODE xmlNode,
const char *  groupName 
)

Definition at line 507 of file buildcmd.c.

References GWB_BuildCmd_toXml(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), and GWEN_XMLNodeTypeTag.

Here is the call graph for this function:

◆ GWB_BuildCmd_List_WriteXml()

void GWB_BuildCmd_List_WriteXml ( const GWB_BUILD_CMD_LIST *  cmdList,
GWEN_XMLNODE xmlNode,
const char *  groupName 
)

Definition at line 530 of file buildcmd.c.

References GWB_BuildCmd_toXml(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), and GWEN_XMLNodeTypeTag.

Referenced by GWB_Project_toXml().

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

◆ GWB_BuildCmd_new()

GWB_BUILD_CMD * GWB_BuildCmd_new ( void  )

Definition at line 42 of file buildcmd.c.

References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.

Referenced by _addBuildCmd(), _parseBuildCmd(), and GWB_BuildCmd_fromXml().

Here is the caller graph for this function:

◆ GWB_BuildCmd_PrintDescriptionWithText()

void GWB_BuildCmd_PrintDescriptionWithText ( const GWB_BUILD_CMD bcmd,
int  indent,
const char *  text 
)

Definition at line 590 of file buildcmd.c.

References GWB_BuildCmd_GetFolder(), GWB_File_GetName(), and NULL.

Here is the call graph for this function:

◆ GWB_BuildCmd_SetBlockingFiles()

void GWB_BuildCmd_SetBlockingFiles ( GWB_BUILD_CMD bcmd,
int  i 
)

Definition at line 231 of file buildcmd.c.

Referenced by _clearDepsInCommands().

Here is the caller graph for this function:

◆ GWB_BuildCmd_SetBuilderName()

void GWB_BuildCmd_SetBuilderName ( GWB_BUILD_CMD bcmd,
const char *  s 
)

Definition at line 155 of file buildcmd.c.

References NULL.

Referenced by _addBuildCmd(), _parseBuildCmd(), and GWB_BuildCmd_fromXml().

Here is the caller graph for this function:

◆ GWB_BuildCmd_SetBuildMessage()

void GWB_BuildCmd_SetBuildMessage ( GWB_BUILD_CMD bcmd,
const char *  s 
)

Definition at line 188 of file buildcmd.c.

References NULL.

Referenced by GWB_BuildCmd_fromXml().

Here is the caller graph for this function:

◆ GWB_BuildCmd_SetCurrentCommand()

void GWB_BuildCmd_SetCurrentCommand ( GWB_BUILD_CMD bcmd,
GWB_BUILD_SUBCMD cmd 
)

Definition at line 313 of file buildcmd.c.

Referenced by _finishCurrentCommand(), _setupCommands(), and GWB_BuildCmd_free().

Here is the caller graph for this function:

◆ GWB_BuildCmd_SetCurrentProcess()

void GWB_BuildCmd_SetCurrentProcess ( GWB_BUILD_CMD bcmd,
GWEN_PROCESS process 
)

Definition at line 292 of file buildcmd.c.

References DBG_ERROR, GWEN_Process_CheckState(), GWEN_Process_free(), GWEN_Process_Terminate(), GWEN_ProcessStateRunning, and NULL.

Referenced by _abortCommandsInQueue(), _checkRunningQueue(), _startCommand(), and GWB_BuildCmd_free().

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

◆ GWB_BuildCmd_SetFlags()

void GWB_BuildCmd_SetFlags ( GWB_BUILD_CMD bcmd,
uint32_t  i 
)

Definition at line 127 of file buildcmd.c.

◆ GWB_BuildCmd_SetFolder()

void GWB_BuildCmd_SetFolder ( GWB_BUILD_CMD bcmd,
const char *  s 
)

Definition at line 173 of file buildcmd.c.

References NULL.

Referenced by _addBuildCmd(), _parseBuildCmd(), and GWB_BuildCmd_fromXml().

Here is the caller graph for this function:

◆ GWB_BuildCmd_toXml()

void GWB_BuildCmd_toXml ( const GWB_BUILD_CMD bcmd,
GWEN_XMLNODE xmlNode 
)

◆ GWEN_LIST2_FUNCTION_DEFS()

GWEN_LIST2_FUNCTION_DEFS ( GWB_BUILD_CMD  ,
GWB_BuildCmd   
)

◆ GWEN_LIST_FUNCTION_DEFS()

GWEN_LIST_FUNCTION_DEFS ( GWB_BUILD_CMD  ,
GWB_BuildCmd   
)