gwenhywfar 5.14.1
project.h File Reference
Include dependency graph for project.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GWB_PROJECT_FLAGS_CONFIG_H   0x0002
#define GWB_PROJECT_FLAGS_SHARED   0x0001

Typedefs

typedef struct GWB_PROJECT GWB_PROJECT

Functions

void GWB_Project_AddBuilder (GWB_PROJECT *project, GWB_BUILDER *builder)
void GWB_Project_AddExplicitBuild (GWB_PROJECT *project, GWB_BUILD_CMD *bcmd)
void GWB_Project_AddFile (GWB_PROJECT *project, GWB_FILE *file)
void GWB_Project_AddFlags (GWB_PROJECT *project, uint32_t fl)
void GWB_Project_AddOption (GWB_PROJECT *project, GWB_OPTION *option)
void GWB_Project_AddTarget (GWB_PROJECT *project, GWB_TARGET *target)
void GWB_Project_ClearDefineList (GWB_PROJECT *project)
void GWB_Project_DelFlags (GWB_PROJECT *project, uint32_t fl)
void GWB_Project_Dump (const GWB_PROJECT *project, int indent, int fullDump)
void GWB_Project_free (GWB_PROJECT *project)
GWB_BUILDER_LIST2 * GWB_Project_GetBuilderList (const GWB_PROJECT *project)
GWB_KEYVALUEPAIR_LIST * GWB_Project_GetDefineList (const GWB_PROJECT *project)
GWB_BUILD_CMD_LIST * GWB_Project_GetExplicitBuildList (const GWB_PROJECT *project)
GWB_FILEGWB_Project_GetFileByPathAndName (const GWB_PROJECT *project, const char *folder, const char *fname)
GWB_FILE_LIST2 * GWB_Project_GetFileList (const GWB_PROJECT *project)
uint32_t GWB_Project_GetFlags (const GWB_PROJECT *project)
const char * GWB_Project_GetGivenOption (const GWB_PROJECT *project, const char *name)
GWB_KEYVALUEPAIR_LIST * GWB_Project_GetGivenOptionList (const GWB_PROJECT *project)
GWENBUILDGWB_Project_GetGwbuild (const GWB_PROJECT *project)
GWB_OPTIONGWB_Project_GetOptionById (const GWB_PROJECT *project, const char *optionId)
GWB_OPTION_LIST * GWB_Project_GetOptionList (const GWB_PROJECT *project)
const char * GWB_Project_GetProjectName (const GWB_PROJECT *project)
GWB_CONTEXTGWB_Project_GetRootContext (const GWB_PROJECT *project)
int GWB_Project_GetSoVersionAge (const GWB_PROJECT *project)
int GWB_Project_GetSoVersionCurrent (const GWB_PROJECT *project)
int GWB_Project_GetSoVersionRevision (const GWB_PROJECT *project)
GWB_TARGETGWB_Project_GetTargetById (const GWB_PROJECT *project, const char *name)
GWB_TARGET_LIST2 * GWB_Project_GetTargetList (const GWB_PROJECT *project)
int GWB_Project_GetVersionBuild (const GWB_PROJECT *project)
int GWB_Project_GetVersionMajor (const GWB_PROJECT *project)
int GWB_Project_GetVersionMinor (const GWB_PROJECT *project)
int GWB_Project_GetVersionPatchlevel (const GWB_PROJECT *project)
const char * GWB_Project_GetVersionTag (const GWB_PROJECT *project)
GWB_PROJECTGWB_Project_new (GWENBUILD *gwbuild, GWB_CONTEXT *ctx)
void GWB_Project_SetDefine (GWB_PROJECT *project, const char *name, const char *value)
void GWB_Project_SetDefineQuoted (GWB_PROJECT *project, const char *name, const char *value)
void GWB_Project_SetFlags (GWB_PROJECT *project, uint32_t fl)
void GWB_Project_SetGivenOption (GWB_PROJECT *project, const char *name, const char *value)
void GWB_Project_SetGivenOptionList (GWB_PROJECT *project, GWB_KEYVALUEPAIR_LIST *kvpList)
void GWB_Project_SetProjectName (GWB_PROJECT *project, const char *s)
void GWB_Project_SetSoVersion (GWB_PROJECT *project, int vCurrent, int vAge, int vRevision)
void GWB_Project_SetVersion (GWB_PROJECT *project, int vMajor, int vMinor, int vPatchlevel, int vBuild, const char *vTag)
void GWB_Project_toXml (const GWB_PROJECT *project, GWEN_XMLNODE *xmlNode)

Macro Definition Documentation

◆ GWB_PROJECT_FLAGS_CONFIG_H

#define GWB_PROJECT_FLAGS_CONFIG_H   0x0002

Definition at line 27 of file project.h.

Referenced by _readArgsHaveConfigH(), _writeFileFlagsToXml(), and GWB_ParseProject().

◆ GWB_PROJECT_FLAGS_SHARED

#define GWB_PROJECT_FLAGS_SHARED   0x0001

Definition at line 26 of file project.h.

Referenced by _writeFileFlagsToXml(), and GWB_Project_Dump().

Typedef Documentation

◆ GWB_PROJECT

typedef struct GWB_PROJECT GWB_PROJECT

Definition at line 14 of file project.h.

Function Documentation

◆ GWB_Project_AddBuilder()

void GWB_Project_AddBuilder ( GWB_PROJECT * project,
GWB_BUILDER * builder )

Definition at line 284 of file project.c.

Referenced by _addSourcesOrMkBuildersAndGetTheirOutputs(), and GWBUILD_MakeBuildersForTargets().

Here is the caller graph for this function:

◆ GWB_Project_AddExplicitBuild()

void GWB_Project_AddExplicitBuild ( GWB_PROJECT * project,
GWB_BUILD_CMD * bcmd )

Definition at line 413 of file project.c.

Referenced by GWB_ParseBuildFiles().

Here is the caller graph for this function:

◆ GWB_Project_AddFile()

void GWB_Project_AddFile ( GWB_PROJECT * project,
GWB_FILE * file )

Definition at line 219 of file project.c.

◆ GWB_Project_AddFlags()

void GWB_Project_AddFlags ( GWB_PROJECT * project,
uint32_t fl )

Definition at line 187 of file project.c.

Referenced by GWB_ParseProject().

Here is the caller graph for this function:

◆ GWB_Project_AddOption()

void GWB_Project_AddOption ( GWB_PROJECT * project,
GWB_OPTION * option )

Definition at line 348 of file project.c.

Referenced by GWB_ParseOption().

Here is the caller graph for this function:

◆ GWB_Project_AddTarget()

void GWB_Project_AddTarget ( GWB_PROJECT * project,
GWB_TARGET * target )

Definition at line 241 of file project.c.

Referenced by GWB_Parser_AddTargetForSourceFile(), and GWB_ParseTarget().

Here is the caller graph for this function:

◆ GWB_Project_ClearDefineList()

void GWB_Project_ClearDefineList ( GWB_PROJECT * project)

Definition at line 331 of file project.c.

References NULL.

◆ GWB_Project_DelFlags()

void GWB_Project_DelFlags ( GWB_PROJECT * project,
uint32_t fl )

Definition at line 194 of file project.c.

◆ GWB_Project_Dump()

void GWB_Project_Dump ( const GWB_PROJECT * project,
int indent,
int fullDump )

◆ GWB_Project_free()

void GWB_Project_free ( GWB_PROJECT * project)

Definition at line 51 of file project.c.

References GWB_Context_free(), and GWEN_FREE_OBJECT.

Referenced by GWB_Parser_ReadBuildTree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWB_Project_GetBuilderList()

GWB_BUILDER_LIST2 * GWB_Project_GetBuilderList ( const GWB_PROJECT * project)

Definition at line 277 of file project.c.

Referenced by _addBuildCommandsFromBuilder().

Here is the caller graph for this function:

◆ GWB_Project_GetDefineList()

GWB_KEYVALUEPAIR_LIST * GWB_Project_GetDefineList ( const GWB_PROJECT * project)

Definition at line 291 of file project.c.

Referenced by _writeConfigH().

Here is the caller graph for this function:

◆ GWB_Project_GetExplicitBuildList()

GWB_BUILD_CMD_LIST * GWB_Project_GetExplicitBuildList ( const GWB_PROJECT * project)

Definition at line 406 of file project.c.

Referenced by _addExplicitBuildCommandsFromTargets().

Here is the caller graph for this function:

◆ GWB_Project_GetFileByPathAndName()

GWB_FILE * GWB_Project_GetFileByPathAndName ( const GWB_PROJECT * project,
const char * folder,
const char * fname )

Definition at line 212 of file project.c.

References GWB_File_List2_GetFileByPathAndName().

Here is the call graph for this function:

◆ GWB_Project_GetFileList()

◆ GWB_Project_GetFlags()

uint32_t GWB_Project_GetFlags ( const GWB_PROJECT * project)

Definition at line 173 of file project.c.

Referenced by _readArgsHaveConfigH(), GWB_ParseProject(), and GWB_Project_toXml().

Here is the caller graph for this function:

◆ GWB_Project_GetGivenOption()

const char * GWB_Project_GetGivenOption ( const GWB_PROJECT * project,
const char * name )

Definition at line 399 of file project.c.

References GWB_KeyValuePair_List_GetValue().

Here is the call graph for this function:

◆ GWB_Project_GetGivenOptionList()

GWB_KEYVALUEPAIR_LIST * GWB_Project_GetGivenOptionList ( const GWB_PROJECT * project)

Definition at line 374 of file project.c.

Referenced by _checkAgainstGivenOption().

Here is the caller graph for this function:

◆ GWB_Project_GetGwbuild()

GWENBUILD * GWB_Project_GetGwbuild ( const GWB_PROJECT * project)

Definition at line 70 of file project.c.

Referenced by _addSourcesOrMkBuildersAndGetTheirOutputs(), _genBuilderForTarget(), and _parseSubdir().

Here is the caller graph for this function:

◆ GWB_Project_GetOptionById()

GWB_OPTION * GWB_Project_GetOptionById ( const GWB_PROJECT * project,
const char * optionId )

Definition at line 355 of file project.c.

References GWB_Option_GetId(), and NULL.

Here is the call graph for this function:

◆ GWB_Project_GetOptionList()

GWB_OPTION_LIST * GWB_Project_GetOptionList ( const GWB_PROJECT * project)

Definition at line 341 of file project.c.

◆ GWB_Project_GetProjectName()

const char * GWB_Project_GetProjectName ( const GWB_PROJECT * project)

Definition at line 77 of file project.c.

Referenced by _addTargetForLanguage(), _writeProjectNameAndVersionToXml(), and _writeProjectVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetRootContext()

GWB_CONTEXT * GWB_Project_GetRootContext ( const GWB_PROJECT * project)

Definition at line 226 of file project.c.

Referenced by GWB_Setup(), GWB_Utils_WriteInstallFileList(), GWB_Utils_WriteProjectInfoToFile(), and GWBUILD_MakeBuildCommands().

Here is the caller graph for this function:

◆ GWB_Project_GetSoVersionAge()

int GWB_Project_GetSoVersionAge ( const GWB_PROJECT * project)

Definition at line 159 of file project.c.

Referenced by _writeProjectSoVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetSoVersionCurrent()

int GWB_Project_GetSoVersionCurrent ( const GWB_PROJECT * project)

Definition at line 152 of file project.c.

Referenced by _writeProjectSoVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetSoVersionRevision()

int GWB_Project_GetSoVersionRevision ( const GWB_PROJECT * project)

Definition at line 166 of file project.c.

Referenced by _writeProjectSoVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetTargetById()

GWB_TARGET * GWB_Project_GetTargetById ( const GWB_PROJECT * project,
const char * name )

Definition at line 248 of file project.c.

References GWB_Target_GetId(), and NULL.

Referenced by _addSubTargetsForTarget().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWB_Project_GetTargetList()

GWB_TARGET_LIST2 * GWB_Project_GetTargetList ( const GWB_PROJECT * project)

Definition at line 234 of file project.c.

Referenced by _addExplicitBuildCommandsFromTargets(), _addSubTargets(), and GWBUILD_MakeBuildersForTargets().

Here is the caller graph for this function:

◆ GWB_Project_GetVersionBuild()

int GWB_Project_GetVersionBuild ( const GWB_PROJECT * project)

Definition at line 129 of file project.c.

Referenced by _setProjectVersionFromProjectAttributes(), _writeProjectNameAndVersionToXml(), and _writeProjectVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetVersionMajor()

int GWB_Project_GetVersionMajor ( const GWB_PROJECT * project)

Definition at line 108 of file project.c.

Referenced by _setProjectVersionFromProjectAttributes(), _writeProjectNameAndVersionToXml(), and _writeProjectVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetVersionMinor()

int GWB_Project_GetVersionMinor ( const GWB_PROJECT * project)

Definition at line 115 of file project.c.

Referenced by _setProjectVersionFromProjectAttributes(), _writeProjectNameAndVersionToXml(), and _writeProjectVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetVersionPatchlevel()

int GWB_Project_GetVersionPatchlevel ( const GWB_PROJECT * project)

Definition at line 122 of file project.c.

Referenced by _setProjectVersionFromProjectAttributes(), _writeProjectNameAndVersionToXml(), and _writeProjectVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_GetVersionTag()

const char * GWB_Project_GetVersionTag ( const GWB_PROJECT * project)

Definition at line 136 of file project.c.

Referenced by _setProjectVersionFromProjectAttributes(), _writeProjectNameAndVersionToXml(), and _writeProjectVersionToContextDbVars().

Here is the caller graph for this function:

◆ GWB_Project_new()

GWB_PROJECT * GWB_Project_new ( GWENBUILD * gwbuild,
GWB_CONTEXT * ctx )

Definition at line 30 of file project.c.

References GWEN_NEW_OBJECT.

Referenced by GWB_Parser_ReadBuildTree().

Here is the caller graph for this function:

◆ GWB_Project_SetDefine()

void GWB_Project_SetDefine ( GWB_PROJECT * project,
const char * name,
const char * value )

Definition at line 298 of file project.c.

References GWB_KeyValuePair_List_GetFirstByKey(), GWB_KeyValuePair_new(), GWB_KeyValuePair_SetValue(), and NULL.

Referenced by _checkStringListOption(), _parseDefine(), _setDefineFunctionExists(), _setDefineHeaderExists(), and GWB_Project_SetDefineQuoted().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWB_Project_SetDefineQuoted()

void GWB_Project_SetDefineQuoted ( GWB_PROJECT * project,
const char * name,
const char * value )

Definition at line 316 of file project.c.

References GWB_Project_SetDefine(), GWEN_Buffer_AppendString(), GWEN_Buffer_free(), GWEN_Buffer_GetStart(), and GWEN_Buffer_new().

Referenced by _parseDefine(), _parseVersions(), and GWB_ParseProject().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWB_Project_SetFlags()

void GWB_Project_SetFlags ( GWB_PROJECT * project,
uint32_t fl )

Definition at line 180 of file project.c.

◆ GWB_Project_SetGivenOption()

void GWB_Project_SetGivenOption ( GWB_PROJECT * project,
const char * name,
const char * value )

Definition at line 389 of file project.c.

References GWB_KeyValuePair_new().

Here is the call graph for this function:

◆ GWB_Project_SetGivenOptionList()

void GWB_Project_SetGivenOptionList ( GWB_PROJECT * project,
GWB_KEYVALUEPAIR_LIST * kvpList )

Definition at line 381 of file project.c.

Referenced by GWB_Parser_ReadBuildTree().

Here is the caller graph for this function:

◆ GWB_Project_SetProjectName()

void GWB_Project_SetProjectName ( GWB_PROJECT * project,
const char * s )

Definition at line 84 of file project.c.

References NULL.

Referenced by GWB_ParseProject().

Here is the caller graph for this function:

◆ GWB_Project_SetSoVersion()

void GWB_Project_SetSoVersion ( GWB_PROJECT * project,
int vCurrent,
int vAge,
int vRevision )

Definition at line 143 of file project.c.

Referenced by _parseVersions().

Here is the caller graph for this function:

◆ GWB_Project_SetVersion()

void GWB_Project_SetVersion ( GWB_PROJECT * project,
int vMajor,
int vMinor,
int vPatchlevel,
int vBuild,
const char * vTag )

Definition at line 96 of file project.c.

References NULL.

Referenced by _setProjectVersionFromProjectAttributes(), and _setProjectVersionFromString().

Here is the caller graph for this function:

◆ GWB_Project_toXml()

void GWB_Project_toXml ( const GWB_PROJECT * project,
GWEN_XMLNODE * xmlNode )