|
1 /* |
|
2 * Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 using System; |
|
19 |
|
20 namespace SymBuildParsingLib.Utils |
|
21 { |
|
22 public class SymEnvironment |
|
23 { |
|
24 #region API |
|
25 public static string EpocRoot |
|
26 { |
|
27 get |
|
28 { |
|
29 //string ret = System.Environment.GetEnvironmentVariable( KSymEpocRootEnvVarName ); |
|
30 string ret = RootPath; |
|
31 return ret; |
|
32 } |
|
33 } |
|
34 |
|
35 public static string Epoc32IncludePath |
|
36 { |
|
37 get |
|
38 { |
|
39 string ret = iRootPath + KSymEpoc32IncludePath; |
|
40 return ret; |
|
41 } |
|
42 } |
|
43 |
|
44 public static string Epoc32Path |
|
45 { |
|
46 get |
|
47 { |
|
48 string ret = iRootPath + KSymEpoc32Path; |
|
49 return ret; |
|
50 } |
|
51 } |
|
52 |
|
53 public static string Epoc32DataPath |
|
54 { |
|
55 get { return iRootPath + KSymEpoc32DataPath; } |
|
56 } |
|
57 |
|
58 public static string RootPath |
|
59 { |
|
60 get { return iRootPath; } |
|
61 set { iRootPath = value; } |
|
62 } |
|
63 #endregion |
|
64 |
|
65 #region Internal constants |
|
66 private const string KSymEpocRootEnvVarName = "EPOCROOT"; |
|
67 private const string KSymEpoc32Path = "\\EPOC32"; |
|
68 private const string KSymEpoc32IncludePath = "\\EPOC32\\Include\\"; |
|
69 private const string KSymEpoc32DataPath = "\\EPOC32\\Data\\"; |
|
70 #endregion |
|
71 |
|
72 #region Data members |
|
73 private static string iRootPath = string.Empty; |
|
74 #endregion |
|
75 } |
|
76 } |