|
gwenhywfar 5.10.1
|
#include "gwenbuild/parser/p_dependencies.h"#include "gwenbuild/parser/parser.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/process.h>#include <gwenhywfar/text.h>#include <gwenhywfar/syncio.h>#include <unistd.h>#include <ctype.h>
Go to the source code of this file.
Functions | |
| static int | _callPkgConfig (GWEN_DB_NODE *db, const char *sId, const char *sName, const char *suffix, const char *args) |
| static int | _checkVersion (GWEN_DB_NODE *db, const char *sId, const char *sName, const char *sMinVersion, const char *sMaxVersion) |
| static int | _parseChildNodes (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode) |
| int | _parseDep (GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode) |
| void | _replaceControlCharsWithBlanks (char *ptr) |
| static int | _retrieveCflags (GWEN_DB_NODE *db, const char *sId, const char *sName) |
| static int | _retrieveLdflags (GWEN_DB_NODE *db, const char *sId, const char *sName) |
| int | _retrieveVariable (GWEN_DB_NODE *db, const char *sId, const char *sName, const char *variableName) |
| int | _retrieveVariables (GWB_CONTEXT *currentContext, GWEN_DB_NODE *db, const char *sId, const char *sName, GWEN_XMLNODE *xmlNode) |
| int | GWB_ParseDependencies (GWB_PROJECT *project, GWB_CONTEXT *currentContext, GWEN_XMLNODE *xmlNode) |
|
static |
Definition at line 321 of file p_dependencies.c.
References _replaceControlCharsWithBlanks(), DBG_DEBUG, DBG_ERROR, GWB_Parser_SetItemValue(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Process_RunCommandWaitAndGather(), GWEN_Text_CondenseBuffer(), and NULL.
Referenced by _retrieveCflags(), _retrieveLdflags(), and _retrieveVariable().


|
static |
Definition at line 212 of file p_dependencies.c.
References DBG_DEBUG, DBG_ERROR, GWB_Parser_SetItemValue(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_ERROR_NOT_FOUND, GWEN_Process_RunCommandWaitAndGather(), and NULL.
Referenced by _parseDep().


|
static |
Definition at line 68 of file p_dependencies.c.
References _parseChildNodes(), _parseDep(), DBG_DEBUG, DBG_ERROR, GWB_Parser_ParseSubdirs(), GWB_Parser_ParseWellKnownElements(), GWEN_LOGDOMAIN, GWEN_XMLNode_GetData(), GWEN_XMLNode_GetFirstTag(), GWEN_XMLNode_GetNextTag(), and NULL.
Referenced by _parseChildNodes(), and GWB_ParseDependencies().


| int _parseDep | ( | GWB_CONTEXT * | currentContext, |
| GWEN_XMLNODE * | xmlNode | ||
| ) |
Definition at line 102 of file p_dependencies.c.
References _checkVersion(), _retrieveCflags(), _retrieveLdflags(), _retrieveVariables(), DBG_ERROR, DBG_INFO, GWB_Context_GetVars(), GWEN_ERROR_GENERIC, GWEN_ERROR_NOT_FOUND, GWEN_XMLNode_ExpandProperties(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_GetProperty(), and NULL.
Referenced by _parseChildNodes().


| void _replaceControlCharsWithBlanks | ( | char * | ptr | ) |
Definition at line 362 of file p_dependencies.c.
Referenced by _callPkgConfig().

|
static |
Definition at line 261 of file p_dependencies.c.
References _callPkgConfig(), DBG_ERROR, and NULL.
Referenced by _parseDep().


|
static |
Definition at line 276 of file p_dependencies.c.
References _callPkgConfig(), DBG_ERROR, and NULL.
Referenced by _parseDep().


| int _retrieveVariable | ( | GWEN_DB_NODE * | db, |
| const char * | sId, | ||
| const char * | sName, | ||
| const char * | variableName | ||
| ) |
Definition at line 291 of file p_dependencies.c.
References _callPkgConfig(), DBG_ERROR, GWEN_Buffer_AppendByte(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), and NULL.
Referenced by _retrieveVariables().


| int _retrieveVariables | ( | GWB_CONTEXT * | currentContext, |
| GWEN_DB_NODE * | db, | ||
| const char * | sId, | ||
| const char * | sName, | ||
| GWEN_XMLNODE * | xmlNode | ||
| ) |
Definition at line 180 of file p_dependencies.c.
References _retrieveVariable(), DBG_ERROR, GWB_Context_GetVars(), GWB_Parser_ReadXmlDataIntoStringList(), GWEN_StringList_FirstEntry(), GWEN_StringList_free(), GWEN_StringListEntry_Data(), GWEN_StringListEntry_Next(), and NULL.
Referenced by _parseDep().


| int GWB_ParseDependencies | ( | GWB_PROJECT * | project, |
| GWB_CONTEXT * | currentContext, | ||
| GWEN_XMLNODE * | xmlNode | ||
| ) |
Definition at line 53 of file p_dependencies.c.
References _parseChildNodes(), DBG_INFO, and NULL.
Referenced by _parseChildNodes().

