source: dev/trunk/ab5.0/abdev/ab_common/src/Environment.cpp@ 685

Last change on this file since 685 was 637, checked in by dai_9181, 16 years ago

リンカの依存関係解決モジュールを製作中

File size: 769 bytes
Line 
1#include "stdafx.h"
2
3std::string ActiveBasic::Common::Environment::rootPath;
4bool ActiveBasic::Common::Environment::isRemoveExternal = false;
5
6using namespace ActiveBasic::Common;
7
8void Environment::SetAbdevRootPath( const std::string &rootPath )
9{
10 Environment::rootPath = Jenga::Common::Path::MakeFullPath( rootPath, Jenga::Common::Environment::GetAppDir() );
11}
12const std::string Environment::GetAbdevRootPath()
13{
14 if( rootPath.empty() )
15 {
16 SetAbdevRootPath( "" );
17 }
18 return rootPath;
19}
20const 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.