Started work on build system
This commit is contained in:
38
fpc/public/helper.h
Normal file
38
fpc/public/helper.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#ifndef HELPER_H
|
||||
#define HELPER_H
|
||||
|
||||
#include "tier1/utlstring.h"
|
||||
|
||||
#define FPC_TEMPORAL_DIRNAME ".fpc"
|
||||
|
||||
class CProject
|
||||
{
|
||||
public:
|
||||
CUtlString m_szName;
|
||||
unsigned int GenerateProjectHash( void );
|
||||
};
|
||||
|
||||
interface IFileSystem2
|
||||
{
|
||||
public:
|
||||
static void MakeDirectory( const char *psz );
|
||||
static void CopyFile( const char *szDestination, const char *szOrigin );
|
||||
static void CopyDirectory( const char *szDestination, const char *szOrigin );
|
||||
};
|
||||
|
||||
|
||||
|
||||
class CBuildStage
|
||||
{
|
||||
public:
|
||||
CBuildStage( CUtlString sz, int(*pMainFn)() );
|
||||
CUtlString m_sz;
|
||||
int(*m_pMainFn)();
|
||||
};
|
||||
|
||||
#define DECLARE_BUILD_STAGE(sz, fn) \
|
||||
CBuildStage __##sz##_build_stage(#sz, fn);
|
||||
|
||||
CUtlVector<CBuildStage*>& BuildStages();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user