gwenhywfar 5.12.0
target.h File Reference
#include <gwenhywfar/list2.h>
#include "gwenbuild/types/context.h"
#include "gwenbuild/types/file.h"
#include "gwenbuild/types/builder.h"
#include "gwenbuild/types/gwenbuild.h"
#include "gwenbuild/types/project.h"
#include "gwenbuild/buildctx/buildcmd.h"
#include <gwenhywfar/stringlist.h>
Include dependency graph for target.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct GWB_TARGET GWB_TARGET

Functions

void GWB_Target_AddExplicitBuild (GWB_TARGET *target, GWB_BUILD_CMD *bcmd)
void GWB_Target_AddSourceFile (GWB_TARGET *target, GWB_FILE *file)
void GWB_Target_AddUsedLibraryName (GWB_TARGET *target, const char *s)
void GWB_Target_AddUsedTargetLinkSpec (GWB_TARGET *target, const char *s)
void GWB_Target_AddUsedTargetName (GWB_TARGET *target, const char *s)
void GWB_Target_Dump (const GWB_TARGET *target, int indent, int fullDump)
void GWB_Target_free (GWB_TARGET *target)
GWB_BUILDERGWB_Target_GetBuilder (const GWB_TARGET *target)
GWB_CONTEXTGWB_Target_GetContext (const GWB_TARGET *target)
GWB_BUILD_CMD_LIST * GWB_Target_GetExplicitBuildList (const GWB_TARGET *target)
const char * GWB_Target_GetId (const GWB_TARGET *target)
const char * GWB_Target_GetInstallName (const GWB_TARGET *target)
const char * GWB_Target_GetInstallPath (const GWB_TARGET *target)
const char * GWB_Target_GetName (const GWB_TARGET *target)
GWB_FILEGWB_Target_GetOutputFile (const GWB_TARGET *target)
GWB_PROJECTGWB_Target_GetProject (const GWB_TARGET *target)
GWB_FILE_LIST2 * GWB_Target_GetSourceFileList (const GWB_TARGET *target)
int GWB_Target_GetSoVersionAge (const GWB_TARGET *target)
int GWB_Target_GetSoVersionCurrent (const GWB_TARGET *target)
int GWB_Target_GetSoVersionRevision (const GWB_TARGET *target)
GWBUILD_TARGETTYPE GWB_Target_GetTargetType (const GWB_TARGET *target)
GWEN_STRINGLISTGWB_Target_GetUsedLibraryNameList (const GWB_TARGET *target)
GWEN_STRINGLISTGWB_Target_GetUsedTargetLinkSpecList (const GWB_TARGET *target)
GWEN_STRINGLISTGWB_Target_GetUsedTargetNameList (const GWB_TARGET *target)
GWB_TARGETGWB_Target_new (GWB_PROJECT *project)
void GWB_Target_SetBuilder (GWB_TARGET *target, GWB_BUILDER *builder)
void GWB_Target_SetContext (GWB_TARGET *target, GWB_CONTEXT *ctx)
void GWB_Target_SetId (GWB_TARGET *target, const char *s)
void GWB_Target_SetInstallName (GWB_TARGET *target, const char *s)
void GWB_Target_SetInstallPath (GWB_TARGET *target, const char *s)
void GWB_Target_SetName (GWB_TARGET *target, const char *s)
void GWB_Target_SetOutputFile (GWB_TARGET *target, GWB_FILE *f)
void GWB_Target_SetSoVersion (GWB_TARGET *target, int vCurrent, int vAge, int vRevision)
void GWB_Target_SetTargetType (GWB_TARGET *target, GWBUILD_TARGETTYPE t)

Typedef Documentation

◆ GWB_TARGET

typedef struct GWB_TARGET GWB_TARGET

Definition at line 17 of file target.h.

Function Documentation

◆ GWB_Target_AddExplicitBuild()

void GWB_Target_AddExplicitBuild ( GWB_TARGET * target,
GWB_BUILD_CMD * bcmd )

Definition at line 300 of file target.c.

Referenced by GWB_ParseBuildFiles().

Here is the caller graph for this function:

◆ GWB_Target_AddSourceFile()

void GWB_Target_AddSourceFile ( GWB_TARGET * target,
GWB_FILE * file )

Definition at line 208 of file target.c.

◆ GWB_Target_AddUsedLibraryName()

void GWB_Target_AddUsedLibraryName ( GWB_TARGET * target,
const char * s )

Definition at line 239 of file target.c.

References GWEN_StringList_AppendString(), GWEN_StringList_new(), and NULL.

Referenced by _parseLibraries().

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

◆ GWB_Target_AddUsedTargetLinkSpec()

void GWB_Target_AddUsedTargetLinkSpec ( GWB_TARGET * target,
const char * s )

Definition at line 255 of file target.c.

References GWEN_StringList_AppendString(), GWEN_StringList_new(), and NULL.

Referenced by _addOneSubTargetForTarget().

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

◆ GWB_Target_AddUsedTargetName()

void GWB_Target_AddUsedTargetName ( GWB_TARGET * target,
const char * s )

Definition at line 223 of file target.c.

References GWEN_StringList_AppendString(), GWEN_StringList_new(), and NULL.

Referenced by _parseUsedTargets().

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

◆ GWB_Target_Dump()

void GWB_Target_Dump ( const GWB_TARGET * target,
int indent,
int fullDump )

◆ GWB_Target_free()

void GWB_Target_free ( GWB_TARGET * target)

Definition at line 45 of file target.c.

References GWEN_FREE_OBJECT, and GWEN_StringList_free().

Referenced by _readTarget(), and GWB_ParseTarget().

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

◆ GWB_Target_GetBuilder()

GWB_BUILDER * GWB_Target_GetBuilder ( const GWB_TARGET * target)

Definition at line 265 of file target.c.

Referenced by _addOneSubTargetForTarget(), and _addSourcesOrMkBuildersAndGetTheirOutputs().

Here is the caller graph for this function:

◆ GWB_Target_GetContext()

GWB_CONTEXT * GWB_Target_GetContext ( const GWB_TARGET * target)

Definition at line 187 of file target.c.

Referenced by _addOneSubTargetForTarget(), _addOrBuildTargetSources(), _addSourcesOrMkBuildersAndGetTheirOutputs(), and _genBuilderForTarget().

Here is the caller graph for this function:

◆ GWB_Target_GetExplicitBuildList()

GWB_BUILD_CMD_LIST * GWB_Target_GetExplicitBuildList ( const GWB_TARGET * target)

Definition at line 293 of file target.c.

Referenced by _addExplicitBuildCommandsFromTargets().

Here is the caller graph for this function:

◆ GWB_Target_GetId()

const char * GWB_Target_GetId ( const GWB_TARGET * target)

Definition at line 109 of file target.c.

Referenced by _addOneSubTargetForTarget(), _addOrBuildTargetSources(), _addSourcesOrMkBuildersAndGetTheirOutputs(), and GWB_Project_GetTargetById().

Here is the caller graph for this function:

◆ GWB_Target_GetInstallName()

const char * GWB_Target_GetInstallName ( const GWB_TARGET * target)

Definition at line 90 of file target.c.

Referenced by _setupOutFiles().

Here is the caller graph for this function:

◆ GWB_Target_GetInstallPath()

const char * GWB_Target_GetInstallPath ( const GWB_TARGET * target)

Definition at line 142 of file target.c.

Referenced by _parseOutFile().

Here is the caller graph for this function:

◆ GWB_Target_GetName()

const char * GWB_Target_GetName ( const GWB_TARGET * target)

Definition at line 71 of file target.c.

Referenced by _readTarget(), and GWB_Context_Dump().

Here is the caller graph for this function:

◆ GWB_Target_GetOutputFile()

GWB_FILE * GWB_Target_GetOutputFile ( const GWB_TARGET * target)

Definition at line 279 of file target.c.

◆ GWB_Target_GetProject()

GWB_PROJECT * GWB_Target_GetProject ( const GWB_TARGET * target)

Definition at line 64 of file target.c.

Referenced by _readArgsHaveConfigH(), and _setupOutFiles().

Here is the caller graph for this function:

◆ GWB_Target_GetSourceFileList()

GWB_FILE_LIST2 * GWB_Target_GetSourceFileList ( const GWB_TARGET * target)

Definition at line 201 of file target.c.

◆ GWB_Target_GetSoVersionAge()

int GWB_Target_GetSoVersionAge ( const GWB_TARGET * target)

Definition at line 173 of file target.c.

Referenced by _readTarget().

Here is the caller graph for this function:

◆ GWB_Target_GetSoVersionCurrent()

int GWB_Target_GetSoVersionCurrent ( const GWB_TARGET * target)

Definition at line 166 of file target.c.

Referenced by _readTarget().

Here is the caller graph for this function:

◆ GWB_Target_GetSoVersionRevision()

int GWB_Target_GetSoVersionRevision ( const GWB_TARGET * target)

Definition at line 180 of file target.c.

Referenced by _readTarget().

Here is the caller graph for this function:

◆ GWB_Target_GetTargetType()

GWBUILD_TARGETTYPE GWB_Target_GetTargetType ( const GWB_TARGET * target)

Definition at line 128 of file target.c.

Referenced by _genBuilderForTarget().

Here is the caller graph for this function:

◆ GWB_Target_GetUsedLibraryNameList()

GWEN_STRINGLIST * GWB_Target_GetUsedLibraryNameList ( const GWB_TARGET * target)

Definition at line 232 of file target.c.

Referenced by _readArgsIfHasLibraries(), and _readArgsLibraries().

Here is the caller graph for this function:

◆ GWB_Target_GetUsedTargetLinkSpecList()

GWEN_STRINGLIST * GWB_Target_GetUsedTargetLinkSpecList ( const GWB_TARGET * target)

Definition at line 248 of file target.c.

Referenced by _readArgsIfHasUsedSubTargets(), and _readArgsUsedSubTargets().

Here is the caller graph for this function:

◆ GWB_Target_GetUsedTargetNameList()

GWEN_STRINGLIST * GWB_Target_GetUsedTargetNameList ( const GWB_TARGET * target)

Definition at line 216 of file target.c.

Referenced by _addSubTargets().

Here is the caller graph for this function:

◆ GWB_Target_new()

GWB_TARGET * GWB_Target_new ( GWB_PROJECT * project)

Definition at line 26 of file target.c.

References GWB_Target_new(), GWEN_NEW_OBJECT, and GWEN_StringList_new().

Referenced by _readTarget(), GWB_Parser_AddTargetForSourceFile(), and GWB_Target_new().

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

◆ GWB_Target_SetBuilder()

void GWB_Target_SetBuilder ( GWB_TARGET * target,
GWB_BUILDER * builder )

Definition at line 272 of file target.c.

Referenced by GWBUILD_MakeBuildersForTargets().

Here is the caller graph for this function:

◆ GWB_Target_SetContext()

void GWB_Target_SetContext ( GWB_TARGET * target,
GWB_CONTEXT * ctx )

Definition at line 194 of file target.c.

Referenced by GWB_Parser_AddTargetForSourceFile(), and GWB_ParseTarget().

Here is the caller graph for this function:

◆ GWB_Target_SetId()

void GWB_Target_SetId ( GWB_TARGET * target,
const char * s )

Definition at line 116 of file target.c.

References NULL.

Referenced by _readTarget(), and GWB_Parser_AddTargetForSourceFile().

Here is the caller graph for this function:

◆ GWB_Target_SetInstallName()

void GWB_Target_SetInstallName ( GWB_TARGET * target,
const char * s )

Definition at line 97 of file target.c.

References NULL.

Referenced by _addTargetForLanguage().

Here is the caller graph for this function:

◆ GWB_Target_SetInstallPath()

void GWB_Target_SetInstallPath ( GWB_TARGET * target,
const char * s )

Definition at line 149 of file target.c.

References NULL.

Referenced by _readTarget(), and GWB_Parser_AddTargetForSourceFile().

Here is the caller graph for this function:

◆ GWB_Target_SetName()

void GWB_Target_SetName ( GWB_TARGET * target,
const char * s )

Definition at line 78 of file target.c.

References NULL.

Referenced by _readTarget(), and GWB_Parser_AddTargetForSourceFile().

Here is the caller graph for this function:

◆ GWB_Target_SetOutputFile()

void GWB_Target_SetOutputFile ( GWB_TARGET * target,
GWB_FILE * f )

Definition at line 286 of file target.c.

◆ GWB_Target_SetSoVersion()

void GWB_Target_SetSoVersion ( GWB_TARGET * target,
int vCurrent,
int vAge,
int vRevision )

Definition at line 157 of file target.c.

Referenced by _readTarget().

Here is the caller graph for this function:

◆ GWB_Target_SetTargetType()

void GWB_Target_SetTargetType ( GWB_TARGET * target,
GWBUILD_TARGETTYPE t )

Definition at line 135 of file target.c.

Referenced by _readTarget(), and GWB_Parser_AddTargetForSourceFile().

Here is the caller graph for this function: