|
gwenhywfar
5.10.1
|
#include "gwenbuild/types/context_p.h"#include <gwenhywfar/debug.h>#include <gwenhywfar/memory.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
|
static |
Definition at line 481 of file context.c.
References NULL.
Referenced by GWB_Context_AddCompilerFlags(), GWB_Context_AddCurrentBuildDir(), GWB_Context_AddCurrentRelativeDir(), GWB_Context_AddCurrentSourceDir(), GWB_Context_AddLinkerFlags(), GWB_Context_InsertCurrentSourceDir(), GWB_Context_InsertTopBuildDir(), and GWB_Context_InsertTopSourceDir().

|
static |
Definition at line 576 of file context.c.
References DBG_ERROR, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DB_FLAGS_DEFAULT, GWEN_DB_WriteToBuffer(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), GWEN_XMLNodeTypeData, and NULL.
Referenced by GWB_Context_toXml().


| void GWB_Context_AddCompilerFlags | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 319 of file context.c.
References _combinedString().

| void GWB_Context_AddCurrentBuildDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 203 of file context.c.
References _combinedString().
Referenced by GWB_Parser_CopyContextForSubdir().


| void GWB_Context_AddCurrentRelativeDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 262 of file context.c.
References _combinedString().
Referenced by GWB_Parser_CopyContextForSubdir().


| void GWB_Context_AddCurrentSourceDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 221 of file context.c.
References _combinedString().
Referenced by GWB_Parser_CopyContextForSubdir().


| void GWB_Context_AddInclude | ( | GWB_CONTEXT * | ctx, |
| const char * | genType, | ||
| const char * | incl | ||
| ) |
Definition at line 367 of file context.c.
References GWB_KeyValuePair_new(), and NULL.
Referenced by _parseIncludes().


| void GWB_Context_AddLinkerFlags | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 349 of file context.c.
References _combinedString().

| void GWB_Context_AddSourceFile | ( | GWB_CONTEXT * | ctx, |
| GWB_FILE * | f | ||
| ) |
Definition at line 441 of file context.c.
References NULL.
Referenced by GWB_Parser_AddTargetForSourceFile(), and GWB_Parser_ParseSourcesOrHeaders().

| void GWB_Context_ClearDefineList | ( | GWB_CONTEXT * | ctx | ) |
Definition at line 417 of file context.c.
References NULL.
Referenced by GWB_Parser_CopyContextForSubdir(), and GWB_Parser_CopyContextForTarget().

| void GWB_Context_ClearIncludeList | ( | GWB_CONTEXT * | ctx | ) |
Definition at line 382 of file context.c.
References NULL.
Referenced by GWB_Parser_CopyContextForSubdir(), and GWB_Parser_CopyContextForTarget().

| void GWB_Context_ClearSourceFileList2 | ( | GWB_CONTEXT * | ctx | ) |
Definition at line 450 of file context.c.
References NULL.
Referenced by GWB_Parser_CopyContextForSubdir(), and GWB_Parser_CopyContextForTarget().

| void GWB_Context_Dump | ( | const GWB_CONTEXT * | ctx, |
| int | indent | ||
| ) |
Definition at line 598 of file context.c.
References GWB_Target_GetName(), GWBUILD_Debug_PrintDb(), GWBUILD_Debug_PrintFileList2(), GWBUILD_Debug_PrintKvpList(), GWBUILD_Debug_PrintValue(), and NULL.
Referenced by GWB_Builder_Dump(), GWB_Context_Tree2_Dump(), and GWB_Target_Dump().


| GWB_CONTEXT* GWB_Context_dup | ( | const GWB_CONTEXT * | originalCtx | ) |
Definition at line 49 of file context.c.
References GWB_KeyValuePair_List_dup(), GWEN_DB_Group_dup(), GWEN_NEW_OBJECT, and GWEN_TREE2_INIT.
Referenced by GWB_Parser_CopyContextForSubdir(), and GWB_Parser_CopyContextForTarget().


| void GWB_Context_free | ( | GWB_CONTEXT * | ctx | ) |
Definition at line 93 of file context.c.
References GWEN_DB_Group_free(), GWEN_FREE_OBJECT, and GWEN_TREE2_FINI.
Referenced by _parseSubdir(), GWB_ParseTarget(), and GWB_Project_free().


| const char* GWB_Context_GetCompilerFlags | ( | const GWB_CONTEXT * | ctx | ) |
| const char* GWB_Context_GetCurrentBuildDir | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 184 of file context.c.
Referenced by _addBuildCmd(), _addBuildFileNameToGwBuild(), _setupOutFiles(), GWB_Builder_AddFileNameToBuffer(), and GWB_Builder_AddRelativeFolderToBuffer().

| const char* GWB_Context_GetCurrentRelativeDir | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 255 of file context.c.
Referenced by _parseBuildCmd(), _parseBuildInputFiles(), _parseBuildOutputFiles(), _parseSubdir(), _parseWriteFile(), _setupVariables(), GWB_Parser_AddTargetForSourceFile(), GWB_Parser_ParseSourcesOrHeaders(), and GWB_Parser_ReadBuildTree().

| const char* GWB_Context_GetCurrentSourceDir | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 214 of file context.c.
Referenced by _getSourcePathForFileName(), and GWB_Parser_CopyContextForSubdir().

| GWB_TARGET* GWB_Context_GetCurrentTarget | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 460 of file context.c.
Referenced by _parseIncludes(), _parseLibraries(), _parseUsedTargets(), _readArgsHaveConfigH(), _readArgsIfHasLibraries(), _readArgsIfHasUsedSubTargets(), _readArgsLibraries(), _readArgsUsedSubTargets(), _setupOutFiles(), and GWB_ParseBuildFiles().

| GWB_KEYVALUEPAIR_LIST* GWB_Context_GetDefineList | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 392 of file context.c.
Referenced by _readArgsDefines().

| GWENBUILD* GWB_Context_GetGwenbuild | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 117 of file context.c.
Referenced by _determineTarget().

| GWB_KEYVALUEPAIR_LIST* GWB_Context_GetIncludeList | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 360 of file context.c.
Referenced by _readArgsIncludes().

| const char* GWB_Context_GetInitialSourceDir | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 285 of file context.c.
Referenced by _addBuildFileNameToGwBuild(), _readMainFilename(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Builder_AddRelativeFolderToBuffer(), GWB_Utils_WriteInstallFileList(), GWB_Utils_WriteProjectInfoToFile(), and GWBUILD_MakeBuildCommands().

| const char* GWB_Context_GetLinkerFlags | ( | const GWB_CONTEXT * | ctx | ) |
| GWB_FILE_LIST2* GWB_Context_GetSourceFileList2 | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 434 of file context.c.
Referenced by _addOrBuildTargetSources().

| const char* GWB_Context_GetTopBuildDir | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 124 of file context.c.
Referenced by GWB_Parser_CopyContextForSubdir().

| const char* GWB_Context_GetTopSourceDir | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 154 of file context.c.
Referenced by GWB_Parser_CopyContextForSubdir().

| GWEN_DB_NODE* GWB_Context_GetVars | ( | const GWB_CONTEXT * | ctx | ) |
Definition at line 427 of file context.c.
Referenced by _addTargetForLanguage(), _checkFunction(), _checkHeader(), _checkStringListOption(), _checkStringOption(), _determineTarget(), _determineTools(), _parseArg(), _parseBuildCommand(), _parseBuildInputFiles(), _parseBuildOutputFiles(), _parseDefine(), _parseDefines(), _parseDep(), _parseI18n(), _parseIfNotVarMatches(), _parseIfVarMatches(), _parseIncludes(), _parseLib(), _parseLibraries(), _parseProg(), _parseSetVar(), _parseUsedTargets(), _parseVersions(), _parseWriteFile(), _prepareContextForSetup(), _readMainSettingsFromXml(), _readTarget(), _retrieveVariables(), _setupVariables(), _varHasValue(), GWB_ParseCheckFunctions(), GWB_ParseCheckHeaders(), GWB_ParseOption(), GWB_ParseProject(), GWB_Parser_CopyContextForSubdir(), GWB_Parser_ParseSourcesOrHeaders(), GWB_Parser_ParseSubdirs(), GWB_Parser_ReadBuildTree(), GWB_ParseTarget(), GWB_Tools_CheckCompilerArgs(), GWB_Tools_TryCompile(), and GWB_Tools_TryLink().

| void GWB_Context_InsertCurrentSourceDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 232 of file context.c.
References _combinedString().
Referenced by GWB_Parser_CopyContextForSubdir().


| void GWB_Context_InsertTopBuildDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 143 of file context.c.
References _combinedString().
Referenced by GWB_Parser_CopyContextForSubdir().


| void GWB_Context_InsertTopSourceDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 173 of file context.c.
References _combinedString().
Referenced by GWB_Parser_CopyContextForSubdir().


| GWB_CONTEXT* GWB_Context_new | ( | GWENBUILD * | gwenbuild | ) |
Definition at line 34 of file context.c.
References GWEN_DB_Group_new(), GWEN_NEW_OBJECT, and GWEN_TREE2_INIT.
Referenced by GWB_Setup().


| void GWB_Context_SetCompilerFlags | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
| void GWB_Context_SetCurrentBuildDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
| void GWB_Context_SetCurrentRelativeDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
| void GWB_Context_SetCurrentSourceDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 243 of file context.c.
References NULL.
Referenced by GWB_Parser_ReadBuildTree().

| void GWB_Context_SetCurrentTarget | ( | GWB_CONTEXT * | ctx, |
| GWB_TARGET * | target | ||
| ) |
doesn't take over target
Definition at line 466 of file context.c.
Referenced by GWB_Parser_AddTargetForSourceFile(), and GWB_ParseTarget().

| void GWB_Context_SetDefine | ( | GWB_CONTEXT * | ctx, |
| const char * | name, | ||
| const char * | value | ||
| ) |
Definition at line 399 of file context.c.
References GWB_KeyValuePair_List_GetFirstByKey(), GWB_KeyValuePair_new(), GWB_KeyValuePair_SetValue(), and NULL.
Referenced by _parseDefines().


| void GWB_Context_SetInitialSourceDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 292 of file context.c.
References NULL.
Referenced by GWB_Parser_ReadBuildTree().

| void GWB_Context_SetLinkerFlags | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
| void GWB_Context_SetTopBuildDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
| void GWB_Context_SetTopSourceDir | ( | GWB_CONTEXT * | ctx, |
| const char * | s | ||
| ) |
Definition at line 161 of file context.c.
References NULL.
Referenced by GWB_Parser_ReadBuildTree().

| void GWB_Context_toXml | ( | const GWB_CONTEXT * | ctx, |
| GWEN_XMLNODE * | xmlNode, | ||
| int | withDb | ||
| ) |
Definition at line 512 of file context.c.
References _exportDbToXml(), GWB_Context_toXml(), GWB_KeyValuePair_List_WriteXml(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), GWEN_XMLNode_SetCharValue(), and GWEN_XMLNodeTypeTag.
Referenced by GWB_Context_toXml(), and GWB_Utils_WriteContextTreeToFile().


| void GWB_Context_Tree2_Dump | ( | const GWB_CONTEXT * | ctx, |
| int | indent | ||
| ) |
Definition at line 624 of file context.c.
References GWB_Context_Dump(), and GWB_Context_Tree2_Dump().
Referenced by GWB_Context_Tree2_Dump(), and GWB_Project_Dump().


1.8.14