|
gwenhywfar 5.10.1
|
#include <gwenhywfar/list2.h>#include <gwenhywfar/xml.h>#include <gwenhywfar/stringlist.h>#include "gwenbuild/types/context.h"#include "gwenbuild/buildctx/buildcmd.h"#include <inttypes.h>

Go to the source code of this file.
Macros | |
| #define | GWB_FILE_FLAGS_DIST 0x0001 |
| #define | GWB_FILE_FLAGS_GENERATED 0x0004 |
| #define | GWB_FILE_FLAGS_INSTALL 0x0002 |
Typedefs | |
| typedef struct GWB_FILE | GWB_FILE |
Functions | |
| void | GWB_File_AddFileList2ToFileList2 (GWB_FILE_LIST2 *sourceList, GWB_FILE_LIST2 *destList, const char *ext) |
| void | GWB_File_AddFlags (GWB_FILE *f, uint32_t i) |
| void | GWB_File_AddWaitingBuildCmd (GWB_FILE *f, GWB_BUILD_CMD *bcmd) |
| void | GWB_File_ClearWaitingBuildCmds (GWB_FILE *file) |
| GWB_FILE * | GWB_File_CopyObjectAndChangeExtension (const GWB_FILE *file, const char *newExt) |
| void | GWB_File_DelFlags (GWB_FILE *f, uint32_t i) |
| GWB_FILE * | GWB_File_dup (const GWB_FILE *oldFile) |
| GWEN_STRINGLIST * | GWB_File_FileListToTopBuildDirStringList (const GWB_FILE_LIST2 *fileList, const char *initialSourceDir) |
| void | GWB_File_free (GWB_FILE *f) |
| GWB_FILE * | GWB_File_fromXml (GWEN_XMLNODE *xmlNode) |
| GWB_BUILD_CMD * | GWB_File_GetBuildCmd (const GWB_FILE *f) |
| const char * | GWB_File_GetBuilder (const GWB_FILE *f) |
| const char * | GWB_File_GetExt (const GWB_FILE *f) |
| const char * | GWB_File_GetFileType (const GWB_FILE *f) |
| uint32_t | GWB_File_GetFlags (const GWB_FILE *f) |
| const char * | GWB_File_GetFolder (const GWB_FILE *f) |
| uint32_t | GWB_File_GetId (const GWB_FILE *f) |
| const char * | GWB_File_GetInstallName (const GWB_FILE *f) |
| const char * | GWB_File_GetInstallPath (const GWB_FILE *f) |
| const char * | GWB_File_GetName (const GWB_FILE *f) |
| GWB_BUILD_CMD_LIST2 * | GWB_File_GetWaitingBuildCmdList2 (const GWB_FILE *f) |
| void | GWB_File_List2_FreeAll (GWB_FILE_LIST2 *fileList2) |
| GWB_FILE * | GWB_File_List2_GetAt (const GWB_FILE_LIST2 *fileList, int index) |
| GWB_FILE * | GWB_File_List2_GetFileById (const GWB_FILE_LIST2 *fileList, uint32_t id) |
| GWB_FILE * | GWB_File_List2_GetFileByPathAndName (const GWB_FILE_LIST2 *fileList, const char *folder, const char *fname) |
| GWB_FILE * | GWB_File_List2_GetOrCreateFile (GWB_FILE_LIST2 *fileList, const char *folder, const char *fname) |
| void | GWB_File_List2_ReadXml (GWEN_XMLNODE *xmlNode, const char *groupName, GWB_FILE_LIST2 *destFileList) |
| void | GWB_File_List2_WriteXml (const GWB_FILE_LIST2 *fileList, GWEN_XMLNODE *xmlNode, const char *groupName) |
| GWB_FILE * | GWB_File_new (const char *folder, const char *fName, uint32_t id) |
| void | GWB_File_ReplaceExtension (GWB_FILE *file, const char *newExt) |
| void | GWB_File_SetBuildCmd (GWB_FILE *f, GWB_BUILD_CMD *bcmd) |
| void | GWB_File_SetBuilder (GWB_FILE *f, const char *s) |
| void | GWB_File_SetFileType (GWB_FILE *f, const char *s) |
| void | GWB_File_SetFlags (GWB_FILE *f, uint32_t i) |
| void | GWB_File_SetFolder (GWB_FILE *f, const char *s) |
| void | GWB_File_SetId (GWB_FILE *f, uint32_t i) |
| void | GWB_File_SetInstallName (GWB_FILE *f, const char *s) |
| void | GWB_File_SetInstallPath (GWB_FILE *f, const char *s) |
| void | GWB_File_SetName (GWB_FILE *f, const char *s) |
| void | GWB_File_toXml (const GWB_FILE *file, GWEN_XMLNODE *xmlNode) |
| void | GWB_File_WriteFileNameToTopBuildDirString (const GWB_FILE *file, const char *initialSourceDir, GWEN_BUFFER *fbuf) |
| void GWB_File_AddFileList2ToFileList2 | ( | GWB_FILE_LIST2 * | sourceList, |
| GWB_FILE_LIST2 * | destList, | ||
| const char * | ext | ||
| ) |
Definition at line 445 of file file.c.
References GWB_File_GetExt().
Referenced by _addSourcesOrMkBuildersAndGetTheirOutputs().


| void GWB_File_AddFlags | ( | GWB_FILE * | f, |
| uint32_t | i | ||
| ) |
Definition at line 113 of file file.c.
Referenced by _parseOutFile(), _parseSubdir(), _parseWriteFile(), GWB_Parser_AddTargetForSourceFile(), GWB_Parser_ParseSourcesOrHeaders(), GWB_Parser_ReadBuildTree(), and GWBUILD_AddFilesFromStringList().

| void GWB_File_AddWaitingBuildCmd | ( | GWB_FILE * | f, |
| GWB_BUILD_CMD * | bcmd | ||
| ) |
Definition at line 253 of file file.c.
References NULL.
Referenced by _setupDepsForCmd().

| void GWB_File_ClearWaitingBuildCmds | ( | GWB_FILE * | file | ) |
Definition at line 262 of file file.c.
Referenced by _clearDepsInFiles().

Definition at line 332 of file file.c.
References DBG_ERROR, GWB_File_dup(), GWB_File_free(), GWB_File_GetName(), GWB_File_ReplaceExtension(), and NULL.

Definition at line 50 of file file.c.
References GWB_File_new(), GWB_File_SetBuilder(), GWB_File_SetFileType(), GWB_File_SetFlags(), GWB_File_SetInstallName(), GWB_File_SetInstallPath(), and NULL.
Referenced by _addFilesToBuildCtx(), GWB_BuildCtx_AddInFileToCtxAndCmd(), GWB_BuildCtx_AddOutFileToCtxAndCmd(), GWB_File_CopyObjectAndChangeExtension(), and GWBUILD_AddFilesFromStringList().


| GWEN_STRINGLIST * GWB_File_FileListToTopBuildDirStringList | ( | const GWB_FILE_LIST2 * | fileList, |
| const char * | initialSourceDir | ||
| ) |
Definition at line 494 of file file.c.
References GWB_File_WriteFileNameToTopBuildDirString(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_StringList_AppendString(), GWEN_StringList_Count(), GWEN_StringList_free(), GWEN_StringList_new(), and NULL.
Referenced by _checkWaitingQueue().


| void GWB_File_free | ( | GWB_FILE * | f | ) |
Definition at line 70 of file file.c.
References GWEN_FREE_OBJECT.
Referenced by GWB_File_CopyObjectAndChangeExtension(), and GWB_File_List2_FreeAll().

| GWB_FILE * GWB_File_fromXml | ( | GWEN_XMLNODE * | xmlNode | ) |
Definition at line 548 of file file.c.
References _readFlagsFromChar(), GWB_File_new(), GWB_File_SetBuilder(), GWB_File_SetFileType(), GWB_File_SetInstallName(), GWB_File_SetInstallPath(), GWEN_XMLNode_GetCharValue(), GWEN_XMLNode_GetIntProperty(), and NULL.
Referenced by GWB_File_List2_ReadXml().


| GWB_BUILD_CMD * GWB_File_GetBuildCmd | ( | const GWB_FILE * | f | ) |
Definition at line 270 of file file.c.
Referenced by _setupDepsForCmd(), and GWB_BuildCtx_AddBuildCmdsForFileToList().

| const char * GWB_File_GetBuilder | ( | const GWB_FILE * | f | ) |
Definition at line 193 of file file.c.
Referenced by _genBuilderForSourceFile().

| const char * GWB_File_GetExt | ( | const GWB_FILE * | f | ) |
Definition at line 184 of file file.c.
References NULL.
Referenced by _genBuilderForSourceFile(), _isAcceptableInput(), and GWB_File_AddFileList2ToFileList2().

| const char * GWB_File_GetFileType | ( | const GWB_FILE * | f | ) |
Definition at line 227 of file file.c.
Referenced by _isAcceptableInput(), _writeFileList2ToXml(), and GWBUILD_Debug_PrintFile().

| uint32_t GWB_File_GetFlags | ( | const GWB_FILE * | f | ) |
Definition at line 99 of file file.c.
Referenced by _addFilePathsToDb(), _generateInstallList(), _readMainFilename(), _writeDistFiles(), _writeFileList2ToXml(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Clean(), GWB_File_toXml(), GWB_File_WriteFileNameToTopBuildDirString(), and GWBUILD_Debug_PrintFile().

| const char * GWB_File_GetFolder | ( | const GWB_FILE * | f | ) |
Definition at line 127 of file file.c.
Referenced by _addFilePathsToDb(), _addOneSubTargetForTarget(), _readMainFilename(), _writeDistFiles(), _writeFileList2ToXml(), GWB_BuildCtx_AddBuildCmdsForFileToList(), GWB_BuildCtx_AddInFileToCtxAndCmd(), GWB_BuildCtx_AddOutFileToCtxAndCmd(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Clean(), GWB_File_List2_GetFileByPathAndName(), GWB_File_WriteFileNameToTopBuildDirString(), and GWBUILD_Debug_PrintFile().

| uint32_t GWB_File_GetId | ( | const GWB_FILE * | f | ) |
Definition at line 85 of file file.c.
Referenced by _addFilesToBuildCtx(), _writeFileList2ToXml(), _writeIdsFromFile2ListToXml(), GWB_File_List2_GetFileById(), and GWBUILD_Debug_PrintFile().

| const char * GWB_File_GetInstallName | ( | const GWB_FILE * | f | ) |
Definition at line 165 of file file.c.
Referenced by _generateInstallList().

| const char * GWB_File_GetInstallPath | ( | const GWB_FILE * | f | ) |
Definition at line 208 of file file.c.
Referenced by _generateInstallList(), _readArgsOutputFiles(), and GWBUILD_Debug_PrintFile().

| const char * GWB_File_GetName | ( | const GWB_FILE * | f | ) |
Definition at line 146 of file file.c.
Referenced by _addFilePathsToDb(), _addMatchingFiles(), _addSourcesOrMkBuildersAndGetTheirOutputs(), _genBuilderForSourceFile(), _generateInstallList(), _readFileListFromTagNode(), _readMainFilename(), _setupAfterAddingFirstInputFile(), _writeDistFiles(), _writeFileList2ToXml(), GWB_BuildCmd_PrintDescriptionWithText(), GWB_BuildCtx_AddBuildCmdsForFileToList(), GWB_BuildCtx_AddInFileToCtxAndCmd(), GWB_BuildCtx_AddOutFileToCtxAndCmd(), GWB_Builder_AddAbsFileNameToBuffer(), GWB_Builder_AddFileNameToBuffer(), GWB_Clean(), GWB_File_CopyObjectAndChangeExtension(), GWB_File_List2_GetFileByPathAndName(), GWB_File_WriteFileNameToTopBuildDirString(), and GWBUILD_Debug_PrintFile().

| GWB_BUILD_CMD_LIST2 * GWB_File_GetWaitingBuildCmdList2 | ( | const GWB_FILE * | f | ) |
Definition at line 246 of file file.c.
Referenced by _signalJobFinished().

| void GWB_File_List2_FreeAll | ( | GWB_FILE_LIST2 * | fileList2 | ) |
Definition at line 284 of file file.c.
References GWB_File_free().
Referenced by GWB_BuildCtx_free().


| GWB_FILE * GWB_File_List2_GetAt | ( | const GWB_FILE_LIST2 * | fileList, |
| int | index | ||
| ) |
Definition at line 643 of file file.c.
References NULL.
Referenced by _readArgsInputFiles(), _readArgsOutputFiles(), _readFileListFromTagNode(), and _readMainFilename().

| GWB_FILE * GWB_File_List2_GetFileById | ( | const GWB_FILE_LIST2 * | fileList, |
| uint32_t | id | ||
| ) |
Definition at line 421 of file file.c.
References GWB_File_GetId(), and NULL.
Referenced by _readFileIdsFromXml().


| GWB_FILE * GWB_File_List2_GetFileByPathAndName | ( | const GWB_FILE_LIST2 * | fileList, |
| const char * | folder, | ||
| const char * | fname | ||
| ) |
Definition at line 353 of file file.c.
References GWB_File_GetFolder(), GWB_File_GetName(), and NULL.
Referenced by GWB_BuildCtx_GetFileByPathAndName(), GWB_File_List2_GetOrCreateFile(), and GWB_Project_GetFileByPathAndName().


| GWB_FILE * GWB_File_List2_GetOrCreateFile | ( | GWB_FILE_LIST2 * | fileList, |
| const char * | folder, | ||
| const char * | fname | ||
| ) |
Definition at line 385 of file file.c.
References GWB_File_List2_GetFileByPathAndName(), GWB_File_new(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_DIR_SEPARATOR, GWEN_DIR_SEPARATOR_S, and NULL.
Referenced by _parseOutFile(), _parseSubdir(), _parseWriteFile(), GWB_Parser_AddTargetForSourceFile(), GWB_Parser_ParseSourcesOrHeaders(), GWB_Parser_ReadBuildTree(), and GWBUILD_AddFilesFromStringList().


| void GWB_File_List2_ReadXml | ( | GWEN_XMLNODE * | xmlNode, |
| const char * | groupName, | ||
| GWB_FILE_LIST2 * | destFileList | ||
| ) |
Definition at line 693 of file file.c.
References GWB_File_fromXml(), GWEN_XMLNode_FindFirstTag(), GWEN_XMLNode_FindNextTag(), and NULL.
Referenced by GWB_Utils_ReadFileList2().


| void GWB_File_List2_WriteXml | ( | const GWB_FILE_LIST2 * | fileList, |
| GWEN_XMLNODE * | xmlNode, | ||
| const char * | groupName | ||
| ) |
Definition at line 670 of file file.c.
References GWB_File_toXml(), GWEN_XMLNode_AddChild(), GWEN_XMLNode_new(), and GWEN_XMLNodeTypeTag.
Referenced by GWB_Project_toXml(), GWB_Target_toXml(), and GWB_Utils_WriteProjectFileList().


| GWB_FILE * GWB_File_new | ( | const char * | folder, |
| const char * | fName, | ||
| uint32_t | id | ||
| ) |
Definition at line 34 of file file.c.
References GWB_File_SetFolder(), GWB_File_SetName(), and GWEN_NEW_OBJECT.
Referenced by _readFilesFromXml(), GWB_File_dup(), GWB_File_fromXml(), and GWB_File_List2_GetOrCreateFile().


| void GWB_File_ReplaceExtension | ( | GWB_FILE * | file, |
| const char * | newExt | ||
| ) |
Definition at line 305 of file file.c.
References GWB_File_SetName(), GWEN_Buffer_AppendBytes(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), and GWEN_Buffer_new().
Referenced by GWB_File_CopyObjectAndChangeExtension().


| void GWB_File_SetBuildCmd | ( | GWB_FILE * | f, |
| GWB_BUILD_CMD * | bcmd | ||
| ) |
Definition at line 277 of file file.c.
Referenced by _fileListSetBuildCmd().

| void GWB_File_SetBuilder | ( | GWB_FILE * | f, |
| const char * | s | ||
| ) |
Definition at line 200 of file file.c.
References NULL.
Referenced by _genBuilderForSourceFile(), GWB_File_dup(), GWB_File_fromXml(), GWB_Parser_AddTargetForSourceFile(), and GWB_Parser_ParseSourcesOrHeaders().

| void GWB_File_SetFileType | ( | GWB_FILE * | f, |
| const char * | s | ||
| ) |
Definition at line 234 of file file.c.
References NULL.
Referenced by _parseOutFile(), _readFilesFromXml(), GWB_File_dup(), GWB_File_fromXml(), GWB_Parser_AddTargetForSourceFile(), and GWB_Parser_ParseSourcesOrHeaders().

| void GWB_File_SetFlags | ( | GWB_FILE * | f, |
| uint32_t | i | ||
| ) |
Definition at line 106 of file file.c.
Referenced by _readFilesFromXml(), and GWB_File_dup().

| void GWB_File_SetFolder | ( | GWB_FILE * | f, |
| const char * | s | ||
| ) |
Definition at line 134 of file file.c.
References NULL.
Referenced by GWB_File_new().

| void GWB_File_SetId | ( | GWB_FILE * | f, |
| uint32_t | i | ||
| ) |
Definition at line 92 of file file.c.
Referenced by _addFilesToBuildCtx(), and GWB_BuildCtx_AddFile().

| void GWB_File_SetInstallName | ( | GWB_FILE * | f, |
| const char * | s | ||
| ) |
Definition at line 172 of file file.c.
References NULL.
Referenced by _setupOutFiles(), GWB_File_dup(), and GWB_File_fromXml().

| void GWB_File_SetInstallPath | ( | GWB_FILE * | f, |
| const char * | s | ||
| ) |
Definition at line 215 of file file.c.
References NULL.
Referenced by _parseOutFile(), _parseWriteFile(), GWB_File_dup(), GWB_File_fromXml(), and GWB_Parser_ParseSourcesOrHeaders().

| void GWB_File_SetName | ( | GWB_FILE * | f, |
| const char * | s | ||
| ) |
Definition at line 153 of file file.c.
References NULL.
Referenced by GWB_File_new(), and GWB_File_ReplaceExtension().

| void GWB_File_toXml | ( | const GWB_FILE * | file, |
| GWEN_XMLNODE * | xmlNode | ||
| ) |
Definition at line 528 of file file.c.
References _writeFileFlagsToXml(), GWB_File_GetFlags(), GWEN_XMLNode_SetCharValue(), and GWEN_XMLNode_SetIntProperty().
Referenced by GWB_File_List2_WriteXml().


| void GWB_File_WriteFileNameToTopBuildDirString | ( | const GWB_FILE * | file, |
| const char * | initialSourceDir, | ||
| GWEN_BUFFER * | fbuf | ||
| ) |
Definition at line 473 of file file.c.
References GWB_FILE_FLAGS_GENERATED, GWB_File_GetFlags(), GWB_File_GetFolder(), GWB_File_GetName(), GWEN_Buffer_AppendString(), and GWEN_DIR_SEPARATOR_S.
Referenced by _fileListToTopBuildDirStringList(), _generateInstallList(), and GWB_File_FileListToTopBuildDirStringList().

