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

Last change on this file since 616 was 517, checked in by dai_9181, 17 years ago

Environment.h/cppのディレクトリを移動。

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