gwenhywfar 5.12.0
p_buildfiles.c File Reference
#include "gwenbuild/parser/p_buildfiles.h"
#include "gwenbuild/parser/parser.h"
#include "gwenbuild/types/builder_be.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
Include dependency graph for p_buildfiles.c:

Go to the source code of this file.

Functions

static void _addFilePathsToDb (GWB_CONTEXT *currentContext, const GWB_FILE_LIST2 *fileList, GWEN_DB_NODE *db, const char *varName)
static void _parseAndSetBuildMessage (GWB_BUILD_SUBCMD *buildSubCmd, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbForCmd)
static GWB_BUILD_CMD_parseBuildCmd (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
static GWB_BUILD_SUBCMD_parseBuildCommand (GWB_BUILD_CMD *bcmd, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbForCmd)
static int _parseBuildInputFiles (GWB_BUILD_CMD *bcmd, GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
static int _parseBuildOutputFiles (GWB_BUILD_CMD *bcmd, GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)
static GWB_BUILD_SUBCMD_parseSubCmd (GWB_BUILD_CMD *bcmd, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbForCmd)
static GWEN_DB_NODE_prepareCmdDb (GWB_BUILD_CMD *bcmd, GWB_CONTEXT *currentContext)
static int _readFileList (GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbVars, const char *sCurrentRelativeDir, GWB_FILE_LIST2 *projectFileList, GWB_FILE_LIST2 *targetFileList, uint32_t flagsToAdd)
static int _readFileListFromTagNode (GWEN_XMLNODE *xmlNode, const GWB_FILE_LIST2 *projectFileList, GWB_FILE_LIST2 *targetFileList)
static int _readFilesFromDataNode (GWEN_XMLNODE *xmlNode, GWEN_DB_NODE *dbVars, const char *sCurrentRelativeDir, GWB_FILE_LIST2 *projectFileList, GWB_FILE_LIST2 *targetFileList, uint32_t flagsToAdd)
int GWB_ParseBuildFiles (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode)

Function Documentation

◆ _addFilePathsToDb()

void _addFilePathsToDb ( GWB_CONTEXT * currentContext,
const GWB_FILE_LIST2 * fileList,
GWEN_DB_NODE * db,
const char * varName )
static

◆ _parseAndSetBuildMessage()

void _parseAndSetBuildMessage ( GWB_BUILD_SUBCMD * buildSubCmd,
GWEN_XMLNODE * xmlNode,
GWEN_DB_NODE * dbForCmd )
static

Definition at line 186 of file p_buildfiles.c.

References GWB_BuildSubCmd_SetBuildMessage(), GWB_Parser_ReadXmlDataIntoBufferAndExpand(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_XMLNode_FindFirstTag(), and NULL.

Referenced by GWB_ParseBuildFiles().

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

◆ _parseBuildCmd()

GWB_BUILD_CMD * _parseBuildCmd ( GWB_PROJECT * project,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode )
static

◆ _parseBuildCommand()

◆ _parseBuildInputFiles()

int _parseBuildInputFiles ( GWB_BUILD_CMD * bcmd,
GWB_PROJECT * project,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode )
static

Definition at line 204 of file p_buildfiles.c.

References _readFileList(), DBG_INFO, GWB_BuildCmd_GetInFileList2(), GWB_Context_GetCurrentRelativeDir(), GWB_Context_GetVars(), GWB_Project_GetFileList(), and NULL.

Referenced by _parseBuildCmd().

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

◆ _parseBuildOutputFiles()

int _parseBuildOutputFiles ( GWB_BUILD_CMD * bcmd,
GWB_PROJECT * project,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode )
static

Definition at line 224 of file p_buildfiles.c.

References _readFileList(), DBG_INFO, GWB_BuildCmd_GetOutFileList2(), GWB_Context_GetCurrentRelativeDir(), GWB_Context_GetVars(), GWB_FILE_FLAGS_GENERATED, GWB_Project_GetFileList(), and NULL.

Referenced by _parseBuildCmd().

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

◆ _parseSubCmd()

GWB_BUILD_SUBCMD * _parseSubCmd ( GWB_BUILD_CMD * bcmd,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode,
GWEN_DB_NODE * dbForCmd )
static

Definition at line 161 of file p_buildfiles.c.

References _parseBuildCommand(), DBG_ERROR, GWB_BUILD_CMD_FLAGS_DEL_OUTFILES, GWB_BuildCmd_AddFlags(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by GWB_ParseBuildFiles().

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

◆ _prepareCmdDb()

GWEN_DB_NODE * _prepareCmdDb ( GWB_BUILD_CMD * bcmd,
GWB_CONTEXT * currentContext )
static

Definition at line 149 of file p_buildfiles.c.

References _addFilePathsToDb(), GWB_BuildCmd_GetInFileList2(), GWB_BuildCmd_GetOutFileList2(), and GWEN_DB_Group_new().

Referenced by GWB_ParseBuildFiles().

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

◆ _readFileList()

int _readFileList ( GWEN_XMLNODE * xmlNode,
GWEN_DB_NODE * dbVars,
const char * sCurrentRelativeDir,
GWB_FILE_LIST2 * projectFileList,
GWB_FILE_LIST2 * targetFileList,
uint32_t flagsToAdd )
static

Definition at line 284 of file p_buildfiles.c.

References _readFileListFromTagNode(), _readFilesFromDataNode(), DBG_INFO, GWEN_XMLNode_GetChild(), GWEN_XMLNode_GetType(), GWEN_XMLNode_Next(), GWEN_XMLNodeTypeData, GWEN_XMLNodeTypeTag, and NULL.

Referenced by _parseBuildInputFiles(), and _parseBuildOutputFiles().

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

◆ _readFileListFromTagNode()

int _readFileListFromTagNode ( GWEN_XMLNODE * xmlNode,
const GWB_FILE_LIST2 * projectFileList,
GWB_FILE_LIST2 * targetFileList )
static

Definition at line 368 of file p_buildfiles.c.

References DBG_ERROR, GWB_File_GetName(), GWB_File_List2_GetAt(), GWEN_ERROR_GENERIC, GWEN_Text_ComparePattern(), GWEN_XMLNode_GetData(), GWEN_XMLNode_GetIntProperty(), GWEN_XMLNode_GetProperty(), and NULL.

Referenced by _readFileList().

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

◆ _readFilesFromDataNode()

int _readFilesFromDataNode ( GWEN_XMLNODE * xmlNode,
GWEN_DB_NODE * dbVars,
const char * sCurrentRelativeDir,
GWB_FILE_LIST2 * projectFileList,
GWB_FILE_LIST2 * targetFileList,
uint32_t flagsToAdd )
static

◆ GWB_ParseBuildFiles()

int GWB_ParseBuildFiles ( GWB_PROJECT * project,
GWB_CONTEXT * currentContext,
GWEN_XMLNODE * xmlNode )