polserver/pol-core/bscript/compilercfg.h
Eric Swanson 50e42719b8
Add file/SourceFileCache (#222)
* Add file/SourceFileCache

Co-authored-by: Fernando Rozenblit <rozenblit@gmail.com>
2020-08-16 17:22:16 -07:00

53 lines
1.1 KiB
C++

/** @file
*
* @par History
*/
#ifndef BSCRIPT_COMPILERCFG_H
#define BSCRIPT_COMPILERCFG_H
#include <string>
#include <vector>
namespace Pol
{
namespace Bscript
{
struct CompilerConfig
{
std::vector<std::string> PackageRoot;
std::string IncludeDirectory;
std::string ModuleDirectory;
std::string PolScriptRoot;
bool GenerateListing;
bool GenerateDebugInfo;
bool GenerateDebugTextInfo;
int VerbosityLevel;
bool DisplayWarnings;
bool GenerateDependencyInfo;
bool CompileAspPages;
bool AutoCompileByDefault;
bool UpdateOnlyOnAutoCompile;
bool OnlyCompileUpdatedScripts;
bool DisplaySummary;
bool DisplayUpToDateScripts;
bool OptimizeObjectMembers;
bool ErrorOnWarning;
bool ThreadedCompilation;
int NumberOfThreads;
bool ParanoiaWarnings;
bool ErrorOnFileCaseMissmatch;
bool UseCompiler2020;
bool CompareCompilerOutput;
int EmParseTreeCacheSize;
int IncParseTreeCacheSize;
void Read( const std::string& path );
void SetDefaults();
};
extern CompilerConfig compilercfg;
} // namespace Bscript
} // namespace Pol
#endif