Migrated
This commit is contained in:
@@ -23,6 +23,7 @@ public:
|
||||
CUtlVector<CUtlString> includeFiles;
|
||||
bool bFPIE;
|
||||
bool bFPIC;
|
||||
bool bDebug = m_target.optimization == TARGET_DEBUG;
|
||||
CLDProject Compile();
|
||||
static void GenerateCompileCommands();
|
||||
};
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
#define HELPER_H
|
||||
|
||||
#include "tier1/utlstring.h"
|
||||
#include "target.h"
|
||||
|
||||
#define FPC_TEMPORAL_DIRNAME ".fpc"
|
||||
|
||||
class CProject
|
||||
{
|
||||
public:
|
||||
Target_t m_target = Target_t::DefaultTarget();
|
||||
CUtlString m_szName;
|
||||
unsigned int GenerateProjectHash( void );
|
||||
};
|
||||
@@ -20,6 +22,7 @@ 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 );
|
||||
static bool ShouldRecompile( const char *szSource, const char *szOutput );
|
||||
};
|
||||
|
||||
class CBuildStage
|
||||
|
||||
@@ -13,10 +13,18 @@ enum ETargetCPU
|
||||
TARGET_CPU_I386,
|
||||
};
|
||||
|
||||
enum ETargetOptimization
|
||||
{
|
||||
TARGET_DEBUG,
|
||||
TARGET_RELEASE_SPEED,
|
||||
TARGET_RELEASE_SIZE
|
||||
};
|
||||
|
||||
struct Target_t
|
||||
{
|
||||
ETargetKernel kernel;
|
||||
ETargetCPU cpu;
|
||||
ETargetOptimization optimization;
|
||||
static Target_t DefaultTarget();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user