source: dev/trunk/ab5.0/abdev/ab_common/include/Environment.h@ 828

Last change on this file since 828 was 828, checked in by イグトランス (egtra), 12 years ago

egtraブランチの内容をマージ。

File size: 1.0 KB
RevLine 
[475]1#pragma once
2
3namespace ActiveBasic{ namespace Common{
4
5
[477]6struct Platform
7{
8 enum EnumType
9 {
10 X86,
11 X64,
12 };
13};
14
[608]15// ターゲット
16struct TargetModuleType
17{
18 enum EnumType
19 {
20 Exe = 0,
21 Dll,
22 Sll,
23 };
24};
25
[475]26class Environment
27{
[477]28 static std::string rootPath;
[637]29 static bool isRemoveExternal;
[475]30public:
[477]31 static void SetAbdevRootPath( const std::string &rootPath );
32
[478]33 static const std::string GetAbdevRootPath();
[477]34
[719]35 static const std::string GetUserAppDir();
36
[477]37 static const std::string GetAbdevSystemDirPath()
38 {
39 return GetAbdevRootPath() + "\\system";
40 }
41
42 static const std::string GetCompilerExePath( Platform::EnumType platform );
[637]43
44 static bool IsRemoveExternal()
45 {
46 return isRemoveExternal;
47 }
48 static void SetRemoveExternalMark( bool isRemoveExternalMark )
49 {
50 Environment::isRemoveExternal = isRemoveExternalMark;
51 }
[828]52
53private:
54 Environment();
55 Environment(Environment const&);
56 Environment& operator =(Environment const&);
57 ~Environment();
[475]58};
59
[773]60BOOL EnableNX();
61void SetHeapOptions();
[475]62
63}}
Note: See TracBrowser for help on using the repository browser.