polserver/pol-core/bscript/compilercfg.h
Kevin Eady ae96ecbf77
Remove OGC from EcompileMain, testsuites (#383)
* Remove OGC from escript testsuite

* Remove compiler options

* Remove Facility::Compiler

* Update docs and options in ecompile help usage

* Update core-changes, breaking-changes
2021-03-04 17:39:14 +01:00

51 lines
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;
int EmParseTreeCacheSize;
int IncParseTreeCacheSize;
void Read( const std::string& path );
void SetDefaults();
};
extern CompilerConfig compilercfg;
} // namespace Bscript
} // namespace Pol
#endif