Line | |
---|
1 | #include "stdafx.h"
|
---|
2 |
|
---|
3 | std::string ActiveBasic::Common::Environment::rootPath;
|
---|
4 | bool ActiveBasic::Common::Environment::isRemoveExternal = false;
|
---|
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 | }
|
---|
12 | const std::string Environment::GetAbdevRootPath()
|
---|
13 | {
|
---|
14 | if( rootPath.empty() )
|
---|
15 | {
|
---|
16 | SetAbdevRootPath( "" );
|
---|
17 | }
|
---|
18 | return rootPath;
|
---|
19 | }
|
---|
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.