gwenhywfar 5.14.1
buildctx.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : Mon Feb 08 2021
3 copyright : (C) 2021 by Martin Preuss
4 email : martin@libchipcard.de
5
6 ***************************************************************************
7 * Please see toplevel file COPYING for license details *
8 ***************************************************************************/
9
10#ifndef GWBUILD_BUILDCTX_H
11#define GWBUILD_BUILDCTX_H
12
13#include <gwenhywfar/xml.h>
14
15
17
21
22
25
28
29
30GWB_BUILD_CMD_LIST2 *GWB_BuildCtx_GetCommandList(const GWB_BUILD_CONTEXT *bctx);
32
33GWB_FILE_LIST2 *GWB_BuildCtx_GetFileList(const GWB_BUILD_CONTEXT *bctx);
35GWB_FILE *GWB_BuildCtx_GetFileByPathAndName(const GWB_BUILD_CONTEXT *bctx, const char *folder, const char *fname);
36
37void GWB_BuildCtx_AddInFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList);
38void GWB_BuildCtx_AddOutFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList);
39
40
43
44const char *GWB_BuildCtx_GetLogPath(const GWB_BUILD_CONTEXT *bctx);
45void GWB_BuildCtx_SetLogPath(GWB_BUILD_CONTEXT *bctx, const char *s);
46
48
49void GWB_BuildCtx_toXml(const GWB_BUILD_CONTEXT *bctx, GWEN_XMLNODE *xmlNode);
51
52
53
54void GWB_BuildCtx_Dump(const GWB_BUILD_CONTEXT *bctx, int indent);
55
56
57#endif
struct GWB_BUILD_CMD GWB_BUILD_CMD
Definition buildcmd.h:20
void GWB_BuildCtx_AddInFileToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE *file)
Definition buildctx.c:132
void GWB_BuildCtx_AddInFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList)
Definition buildctx.c:150
GWB_FILE * GWB_BuildCtx_GetFileByPathAndName(const GWB_BUILD_CONTEXT *bctx, const char *folder, const char *fname)
Definition buildctx.c:125
void GWB_BuildCtx_free(GWB_BUILD_CONTEXT *bctx)
Definition buildctx.c:47
void GWB_BuildCtx_AddCommand(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd)
Definition buildctx.c:102
GWB_BUILD_CMD_LIST2 * GWB_BuildCtx_GetCommandList(const GWB_BUILD_CONTEXT *bctx)
Definition buildctx.c:95
int GWB_BuildCtx_CreateAndSetLogFilenameForSubCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_SUBCMD *cmd)
Definition buildctx.c:220
const char * GWB_BuildCtx_GetInitialSourceDir(const GWB_BUILD_CONTEXT *bctx)
Definition buildctx.c:80
void GWB_BuildCtx_SetInitialSourceDir(GWB_BUILD_CONTEXT *bctx, const char *s)
Definition buildctx.c:87
const char * GWB_BuildCtx_GetLogPath(const GWB_BUILD_CONTEXT *bctx)
Definition buildctx.c:65
GWB_BUILD_CONTEXT * GWB_BuildCtx_fromXml(GWEN_XMLNODE *xmlNode)
void GWB_BuildCtx_toXml(const GWB_BUILD_CONTEXT *bctx, GWEN_XMLNODE *xmlNode)
struct GWB_BUILD_CONTEXT GWB_BUILD_CONTEXT
Definition buildctx.h:16
void GWB_BuildCtx_AddOutFileToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE *file)
Definition buildctx.c:169
GWB_FILE_LIST2 * GWB_BuildCtx_GetFileList(const GWB_BUILD_CONTEXT *bctx)
Definition buildctx.c:109
void GWB_BuildCtx_AddFile(GWB_BUILD_CONTEXT *bctx, GWB_FILE *file)
Definition buildctx.c:116
GWB_BUILD_CONTEXT * GWB_BuildCtx_new()
Definition buildctx.c:34
void GWB_BuildCtx_SetLogPath(GWB_BUILD_CONTEXT *bctx, const char *s)
Definition buildctx.c:72
void GWB_BuildCtx_AddOutFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList)
Definition buildctx.c:187
void GWB_BuildCtx_Dump(const GWB_BUILD_CONTEXT *bctx, int indent)
Definition buildctx.c:206
struct GWB_BUILD_SUBCMD GWB_BUILD_SUBCMD
Definition buildsubcmd.h:16
struct GWB_FILE GWB_FILE
Definition file.h:18
struct GWEN__XMLNODE GWEN_XMLNODE
Definition xml.h:156