|
gwenhywfar 5.14.1
|
#include "gwenbuild/buildctx/buildctx_p.h"#include "gwenbuild/buildctx/buildctx_xml.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/text.h>#include <gwenhywfar/directory.h>#include <unistd.h>#include <ctype.h>
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
Functions | |
| static void | _readCommandsFromXml (GWB_BUILD_CONTEXT *bctx, GWEN_XMLNODE *xmlNode, const char *groupName) |
| static void | _readFilesFromXml (GWEN_XMLNODE *xmlNode, const char *groupName, GWB_FILE_LIST2 *destFileList) |
| static uint32_t | _readFlagsFromChar (const char *flagsAsText) |
| static void | _writeCommandList2ToXml (const GWB_BUILD_CMD_LIST2 *commandList, GWEN_XMLNODE *xmlNode, const char *groupName) |
| static void | _writeFileFlagsToXml (uint32_t flags, GWEN_XMLNODE *xmlNode, const char *varName) |
| static void | _writeFileList2ToXml (const GWB_FILE_LIST2 *fileList, GWEN_XMLNODE *xmlNode, const char *groupName) |
| GWB_BUILD_CONTEXT * | GWB_BuildCtx_fromXml (GWEN_XMLNODE *xmlNode) |
| GWB_BUILD_CONTEXT * | GWB_BuildCtx_ReadFromXmlFile (const char *fileName) |
| void | GWB_BuildCtx_toXml (const GWB_BUILD_CONTEXT *bctx, GWEN_XMLNODE *xmlNode) |
| int | GWB_BuildCtx_WriteToXmlFile (const GWB_BUILD_CONTEXT *buildCtx, const char *fileName) |
| #define DISABLE_DEBUGLOG |
Definition at line 14 of file buildctx_xml.c.
|
static |
Definition at line 182 of file buildctx_xml.c.
References GWB_BuildCmd_fromXml(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), and NULL.
Referenced by GWB_BuildCtx_fromXml().


|
static |
Definition at line 198 of file buildctx_xml.c.
References _readFlagsFromChar(), DBG_ERROR, GWB_File_new(), GWB_File_SetFileType(), GWB_File_SetFlags(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), GWEN_XMLNode_GetCharValue(), GWEN_XMLNode_GetIntProperty(), and NULL.
Referenced by GWB_BuildCtx_fromXml().


|
static |
Definition at line 238 of file buildctx_xml.c.
References DBG_ERROR, GWB_FILE_FLAGS_DIST, GWB_FILE_FLAGS_GENERATED, GWB_FILE_FLAGS_INSTALL, GWEN_StringList_FirstEntry(), GWEN_StringList_free(), GWEN_StringList_fromString(), GWEN_StringListEntry_Data(), GWEN_StringListEntry_Next(), and NULL.
Referenced by _readFilesFromXml().


|
static |
Definition at line 91 of file buildctx_xml.c.
References GWB_BuildCmd_toXml(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), and GWEN_XMLNodeTypeTag.
Referenced by GWB_BuildCtx_toXml().


|
static |
Definition at line 150 of file buildctx_xml.c.
References GWB_FILE_FLAGS_DIST, GWB_FILE_FLAGS_GENERATED, GWB_FILE_FLAGS_INSTALL, GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_GetUsedBytes(), GWEN_Buffer_new(), and GWEN_XMLNode_SetCharValue().
Referenced by _writeFileList2ToXml().


|
static |
Definition at line 114 of file buildctx_xml.c.
References _writeFileFlagsToXml(), GWB_File_GetFileType(), GWB_File_GetFlags(), GWB_File_GetFolder(), GWB_File_GetId(), GWB_File_GetName(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), GWEN_XMLNode_SetCharValue(), GWEN_XMLNode_SetIntProperty(), and GWEN_XMLNodeTypeTag.
Referenced by GWB_BuildCtx_toXml().


| GWB_BUILD_CONTEXT * GWB_BuildCtx_fromXml | ( | GWEN_XMLNODE * | xmlNode | ) |
Definition at line 66 of file buildctx_xml.c.
References _readCommandsFromXml(), _readFilesFromXml(), GWB_BuildCtx_new(), GWB_BuildCtx_SetInitialSourceDir(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_GetCharValue(), and NULL.
Referenced by GWB_BuildCtx_ReadFromXmlFile().


| GWB_BUILD_CONTEXT * GWB_BuildCtx_ReadFromXmlFile | ( | const char * | fileName | ) |
Definition at line 273 of file buildctx_xml.c.
References DBG_ERROR, GWB_BuildCtx_fromXml(), GWEN_XML_FLAGS_DEFAULT, GWEN_XML_FLAGS_SIMPLE, GWEN_XML_ReadFile(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_free(), GWEN_XMLNode_new(), GWEN_XMLNodeTypeTag, and NULL.
Referenced by GWB_Build(), and GWB_Prepare().


| void GWB_BuildCtx_toXml | ( | const GWB_BUILD_CONTEXT * | bctx, |
| GWEN_XMLNODE * | xmlNode ) |
Definition at line 42 of file buildctx_xml.c.
References _writeCommandList2ToXml(), _writeFileList2ToXml(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), GWEN_XMLNode_SetCharValue(), and GWEN_XMLNodeTypeTag.
Referenced by GWB_BuildCtx_WriteToXmlFile().


| int GWB_BuildCtx_WriteToXmlFile | ( | const GWB_BUILD_CONTEXT * | buildCtx, |
| const char * | fileName ) |
Definition at line 303 of file buildctx_xml.c.
References DBG_ERROR, GWB_BuildCtx_toXml(), GWEN_XML_FLAGS_DEFAULT, GWEN_XML_FLAGS_SIMPLE, GWEN_XMLNode_AddChild(), GWEN_XMLNode_free(), GWEN_XMLNode_new(), GWEN_XMLNode_WriteFile(), GWEN_XMLNodeTypeTag, and NULL.
Referenced by GWB_Setup().

