gwenhywfar  5.9.0
Macros | Functions
buildctx_bdeps.c File Reference
#include "gwenbuild/buildctx/buildctx_p.h"
#include "gwenbuild/buildctx/buildctx_bdeps.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/text.h>
#include <gwenhywfar/directory.h>
#include <unistd.h>
#include <ctype.h>
Include dependency graph for buildctx_bdeps.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

static void _clearDeps (GWB_BUILD_CONTEXT *bctx)
 
static void _clearDepsInCommands (GWB_BUILD_CONTEXT *bctx)
 
static void _clearDepsInFiles (GWB_BUILD_CONTEXT *bctx)
 
static int _cmdIsInList (const GWB_BUILD_CMD_LIST2 *sourceCmdList, const GWB_BUILD_CMD *cmd)
 
static void _fileListSetBuildCmd (GWB_FILE_LIST2 *fileList, GWB_BUILD_CMD *bcmd)
 
static void _setBuildCmdInFiles (GWB_BUILD_CONTEXT *bctx)
 
static void _setupDepsForCmd (GWB_BUILD_CMD *bcmd, GWB_BUILD_CMD_LIST2 *targetCmdList)
 
int GWB_BuildCtx_AddBuildCmdsByBuilderNameToList (const GWB_BUILD_CMD_LIST2 *sourceCmdList, const char *builderName, GWB_BUILD_CMD_LIST2 *targetCmdList)
 
int GWB_BuildCtx_AddBuildCmdsForFileToList (const GWB_FILE *file, GWB_BUILD_CMD_LIST2 *targetCmdList)
 
int GWB_BuildCtx_FillWaitingQueue (GWB_BUILD_CONTEXT *bctx, const char *builderName)
 
int GWB_BuildCtx_SetupDependencies (GWB_BUILD_CONTEXT *bctx)
 

Macro Definition Documentation

#define DISABLE_DEBUGLOG

Definition at line 14 of file buildctx_bdeps.c.

Function Documentation

void _clearDeps ( GWB_BUILD_CONTEXT bctx)
static

Definition at line 154 of file buildctx_bdeps.c.

References _clearDepsInCommands(), and _clearDepsInFiles().

Referenced by GWB_BuildCtx_SetupDependencies().

Here is the call graph for this function:

Here is the caller graph for this function:

void _clearDepsInCommands ( GWB_BUILD_CONTEXT bctx)
static

Definition at line 162 of file buildctx_bdeps.c.

References GWB_BuildCmd_SetBlockingFiles().

Referenced by _clearDeps().

Here is the call graph for this function:

Here is the caller graph for this function:

void _clearDepsInFiles ( GWB_BUILD_CONTEXT bctx)
static

Definition at line 183 of file buildctx_bdeps.c.

References GWB_File_ClearWaitingBuildCmds().

Referenced by _clearDeps().

Here is the call graph for this function:

Here is the caller graph for this function:

int _cmdIsInList ( const GWB_BUILD_CMD_LIST2 *  sourceCmdList,
const GWB_BUILD_CMD cmd 
)
static

Definition at line 284 of file buildctx_bdeps.c.

Referenced by _setupDepsForCmd(), and GWB_BuildCtx_AddBuildCmdsByBuilderNameToList().

Here is the caller graph for this function:

void _fileListSetBuildCmd ( GWB_FILE_LIST2 *  fileList,
GWB_BUILD_CMD bcmd 
)
static

Definition at line 263 of file buildctx_bdeps.c.

References GWB_File_SetBuildCmd().

Referenced by _setBuildCmdInFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void _setBuildCmdInFiles ( GWB_BUILD_CONTEXT bctx)
static

Definition at line 242 of file buildctx_bdeps.c.

References _fileListSetBuildCmd(), and GWB_BuildCmd_GetOutFileList2().

Referenced by GWB_BuildCtx_SetupDependencies().

Here is the call graph for this function:

Here is the caller graph for this function:

void _setupDepsForCmd ( GWB_BUILD_CMD bcmd,
GWB_BUILD_CMD_LIST2 *  targetCmdList 
)
static
int GWB_BuildCtx_AddBuildCmdsByBuilderNameToList ( const GWB_BUILD_CMD_LIST2 *  sourceCmdList,
const char *  builderName,
GWB_BUILD_CMD_LIST2 *  targetCmdList 
)

Definition at line 101 of file buildctx_bdeps.c.

References _cmdIsInList(), _setupDepsForCmd(), GWB_BUILD_CMD_FLAGS_AUTO, GWB_BuildCmd_GetBuilderName(), GWB_BuildCmd_GetCurrentCommand(), and GWB_BuildCmd_GetFlags().

Referenced by GWB_BuildCtx_FillWaitingQueue().

Here is the call graph for this function:

Here is the caller graph for this function:

int GWB_BuildCtx_AddBuildCmdsForFileToList ( const GWB_FILE file,
GWB_BUILD_CMD_LIST2 *  targetCmdList 
)
int GWB_BuildCtx_FillWaitingQueue ( GWB_BUILD_CONTEXT bctx,
const char *  builderName 
)

Definition at line 51 of file buildctx_bdeps.c.

References DBG_ERROR, DBG_INFO, GWB_BuildCtx_AddBuildCmdsByBuilderNameToList(), GWBUILD_Debug_PrintBuildCmdList2(), and NULL.

Referenced by GWB_BuildCtx_Run().

Here is the call graph for this function:

Here is the caller graph for this function:

int GWB_BuildCtx_SetupDependencies ( GWB_BUILD_CONTEXT bctx)

Definition at line 42 of file buildctx_bdeps.c.

References _clearDeps(), and _setBuildCmdInFiles().

Referenced by GWB_BuildCtx_Run().

Here is the call graph for this function:

Here is the caller graph for this function: