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 
20 #include "gwenbuild/types/file.h"
21 
22 
25 
27 void GWB_BuildCtx_SetInitialSourceDir(GWB_BUILD_CONTEXT *bctx, const char *s);
28 
29 
30 GWB_BUILD_CMD_LIST2 *GWB_BuildCtx_GetCommandList(const GWB_BUILD_CONTEXT *bctx);
32 
33 GWB_FILE_LIST2 *GWB_BuildCtx_GetFileList(const GWB_BUILD_CONTEXT *bctx);
35 GWB_FILE *GWB_BuildCtx_GetFileByPathAndName(const GWB_BUILD_CONTEXT *bctx, const char *folder, const char *fname);
36 
37 void GWB_BuildCtx_AddInFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList);
38 void GWB_BuildCtx_AddOutFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList);
39 
40 
43 
44 const char *GWB_BuildCtx_GetLogPath(const GWB_BUILD_CONTEXT *bctx);
45 void GWB_BuildCtx_SetLogPath(GWB_BUILD_CONTEXT *bctx, const char *s);
46 
48 
49 void GWB_BuildCtx_toXml(const GWB_BUILD_CONTEXT *bctx, GWEN_XMLNODE *xmlNode);
51 
52 
53 
54 void GWB_BuildCtx_Dump(const GWB_BUILD_CONTEXT *bctx, int indent);
55 
56 
57 #endif
GWB_BUILD_CONTEXT * GWB_BuildCtx_new()
Definition: buildctx.c:34
void GWB_BuildCtx_AddOutFileToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE *file)
Definition: buildctx.c:169
void GWB_BuildCtx_AddOutFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList)
Definition: buildctx.c:187
struct GWB_FILE GWB_FILE
Definition: file.h:18
struct GWB_BUILD_CONTEXT GWB_BUILD_CONTEXT
Definition: buildctx.h:16
GWB_BUILD_CONTEXT * GWB_BuildCtx_fromXml(GWEN_XMLNODE *xmlNode)
Definition: buildctx_xml.c:66
int GWB_BuildCtx_CreateAndSetLogFilenameForSubCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_SUBCMD *cmd)
Definition: buildctx.c:220
void GWB_BuildCtx_AddFile(GWB_BUILD_CONTEXT *bctx, GWB_FILE *file)
Definition: buildctx.c:116
void GWB_BuildCtx_free(GWB_BUILD_CONTEXT *bctx)
Definition: buildctx.c:47
const char * GWB_BuildCtx_GetLogPath(const GWB_BUILD_CONTEXT *bctx)
Definition: buildctx.c:65
void GWB_BuildCtx_Dump(const GWB_BUILD_CONTEXT *bctx, int indent)
Definition: buildctx.c:206
GWB_FILE_LIST2 * GWB_BuildCtx_GetFileList(const GWB_BUILD_CONTEXT *bctx)
Definition: buildctx.c:109
void GWB_BuildCtx_SetLogPath(GWB_BUILD_CONTEXT *bctx, const char *s)
Definition: buildctx.c:72
void GWB_BuildCtx_AddCommand(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd)
Definition: buildctx.c:102
struct GWB_BUILD_SUBCMD GWB_BUILD_SUBCMD
Definition: buildsubcmd.h:16
void GWB_BuildCtx_AddInFilesToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE_LIST2 *fileList)
Definition: buildctx.c:150
void GWB_BuildCtx_toXml(const GWB_BUILD_CONTEXT *bctx, GWEN_XMLNODE *xmlNode)
Definition: buildctx_xml.c:42
GWB_FILE * GWB_BuildCtx_GetFileByPathAndName(const GWB_BUILD_CONTEXT *bctx, const char *folder, const char *fname)
Definition: buildctx.c:125
void GWB_BuildCtx_AddInFileToCtxAndCmd(GWB_BUILD_CONTEXT *bctx, GWB_BUILD_CMD *bcmd, GWB_FILE *file)
Definition: buildctx.c:132
struct GWB_BUILD_CMD GWB_BUILD_CMD
Definition: buildcmd.h:20
void GWB_BuildCtx_SetInitialSourceDir(GWB_BUILD_CONTEXT *bctx, const char *s)
Definition: buildctx.c:87
const char * GWB_BuildCtx_GetInitialSourceDir(const GWB_BUILD_CONTEXT *bctx)
Definition: buildctx.c:80
GWB_BUILD_CMD_LIST2 * GWB_BuildCtx_GetCommandList(const GWB_BUILD_CONTEXT *bctx)
Definition: buildctx.c:95
struct GWEN__XMLNODE GWEN_XMLNODE
Definition: xml.h:156