|
Last change
on this file since 494 was 478, checked in by dai_9181, 18 years ago |
|
・リポジトリ参照の張りなおし。
・Environment::GetAbdevRootPathメソッドにて、自動的にデータの初期化を行うようにした。
・reg_exp.cppの文字コードをShift-JISに統一。
|
|
File size:
703 bytes
|
| Line | |
|---|
| 1 | #include "stdafx.h"
|
|---|
| 2 |
|
|---|
| 3 | std::string ActiveBasic::Common::Environment::rootPath;
|
|---|
| 4 |
|
|---|
| 5 | using namespace ActiveBasic::Common;
|
|---|
| 6 |
|
|---|
| 7 | void Environment::SetAbdevRootPath( const std::string &rootPath )
|
|---|
| 8 | {
|
|---|
| 9 | Environment::rootPath = Jenga::Common::Path::MakeFullPath( rootPath, Jenga::Common::Environment::GetAppDir() );
|
|---|
| 10 | }
|
|---|
| 11 | const std::string Environment::GetAbdevRootPath()
|
|---|
| 12 | {
|
|---|
| 13 | if( rootPath.empty() )
|
|---|
| 14 | {
|
|---|
| 15 | SetAbdevRootPath( "" );
|
|---|
| 16 | }
|
|---|
| 17 | return rootPath;
|
|---|
| 18 | }
|
|---|
| 19 | const 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.