Rev | Line | |
---|
[477] | 1 | #include "stdafx.h"
|
---|
| 2 |
|
---|
[478] | 3 | std::string ActiveBasic::Common::Environment::rootPath;
|
---|
[637] | 4 | bool ActiveBasic::Common::Environment::isRemoveExternal = false;
|
---|
[477] | 5 |
|
---|
| 6 | using namespace ActiveBasic::Common;
|
---|
| 7 |
|
---|
| 8 | void Environment::SetAbdevRootPath( const std::string &rootPath )
|
---|
| 9 | {
|
---|
| 10 | Environment::rootPath = Jenga::Common::Path::MakeFullPath( rootPath, Jenga::Common::Environment::GetAppDir() );
|
---|
| 11 | }
|
---|
[478] | 12 | const std::string Environment::GetAbdevRootPath()
|
---|
| 13 | {
|
---|
| 14 | if( rootPath.empty() )
|
---|
| 15 | {
|
---|
| 16 | SetAbdevRootPath( "" );
|
---|
| 17 | }
|
---|
| 18 | return rootPath;
|
---|
| 19 | }
|
---|
[477] | 20 | const std::string Environment::GetCompilerExePath( Platform::EnumType platform )
|
---|
| 21 | {
|
---|
| 22 | switch( platform )
|
---|
| 23 | {
|
---|
| 24 | case Platform::X86:
|
---|
| 25 | return rootPath + "\\bin\\x86\\abc.exe";
|
---|
| 26 | case Platform::X64:
|
---|
| 27 | return rootPath + "\\bin\\x64\\abc.exe";
|
---|
| 28 | }
|
---|
| 29 | throw;
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.