core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java
equal
deleted
inserted
replaced
18 import com.nokia.carbide.cpp.internal.api.sdk.sbsv2.SBSv2ConfigQueryData; |
18 import com.nokia.carbide.cpp.internal.api.sdk.sbsv2.SBSv2ConfigQueryData; |
19 import com.nokia.carbide.cpp.internal.api.sdk.sbsv2.SBSv2MinimumVersionException; |
19 import com.nokia.carbide.cpp.internal.api.sdk.sbsv2.SBSv2MinimumVersionException; |
20 import com.nokia.carbide.cpp.internal.api.sdk.sbsv2.SBSv2QueryUtils; |
20 import com.nokia.carbide.cpp.internal.api.sdk.sbsv2.SBSv2QueryUtils; |
21 import com.nokia.carbide.cpp.internal.sdk.core.model.SBSv2BuildInfo; |
21 import com.nokia.carbide.cpp.internal.sdk.core.model.SBSv2BuildInfo; |
22 import com.nokia.carbide.cpp.sdk.core.ISymbianBuildContext; |
22 import com.nokia.carbide.cpp.sdk.core.ISymbianBuildContext; |
|
23 import com.nokia.carbide.cpp.sdk.core.ISymbianBuilderID; |
23 import com.nokia.carbide.cpp.sdk.core.ISymbianSDK; |
24 import com.nokia.carbide.cpp.sdk.core.ISymbianSDK; |
24 import com.nokia.carbide.cpp.sdk.core.SDKCorePlugin; |
25 import com.nokia.carbide.cpp.sdk.core.SDKCorePlugin; |
25 import com.nokia.cpp.internal.api.utils.core.Check; |
26 import com.nokia.cpp.internal.api.utils.core.Check; |
26 import com.nokia.cpp.internal.api.utils.core.Logging; |
27 import com.nokia.cpp.internal.api.utils.core.Logging; |
27 import com.nokia.cpp.internal.api.utils.ui.WorkbenchUtils; |
28 import com.nokia.cpp.internal.api.utils.ui.WorkbenchUtils; |
38 // Raptor config query data |
39 // Raptor config query data |
39 private ISBSv2ConfigQueryData configQueryData; |
40 private ISBSv2ConfigQueryData configQueryData; |
40 |
41 |
41 // cconfiguration data store |
42 // cconfiguration data store |
42 private SBSv2BuilderInfo sbsv2BuildInfo; |
43 private SBSv2BuilderInfo sbsv2BuildInfo; |
|
44 |
|
45 private IPath cachedVariantHRHFile = null; |
43 |
46 |
44 public BuildContextSBSv2(ISymbianSDK sdk, String platform, String target, String alias, String displayString, String configID) { |
47 public BuildContextSBSv2(ISymbianSDK sdk, String platform, String target, String alias, String displayString, String configID) { |
45 this.sdk = sdk; |
48 this.sdk = sdk; |
46 if (platform == null){ |
49 if (platform == null){ |
47 this.platform = "unknown_platform"; |
50 this.platform = "unknown_platform"; |
155 public List<IDefine> getVariantHRHDefines() { |
158 public List<IDefine> getVariantHRHDefines() { |
156 return getCachedData().getVariantHRHDefines(); |
159 return getCachedData().getVariantHRHDefines(); |
157 } |
160 } |
158 |
161 |
159 @Override |
162 @Override |
160 public List<File> getPrefixFileIncludes() { |
163 public List<File> getVariantHRHIncludes() { |
161 return getCachedData().getPrefixFileIncludes(); |
164 return getCachedData().getPrefixFileIncludes(); |
162 } |
165 } |
163 |
166 |
164 @Override |
167 @Override |
165 public List<IDefine> getCompilerMacros() { |
168 public List<IDefine> getCompilerPreincludeDefines() { |
166 IPath prefixFile = getCompilerPrefixFile(); |
169 IPath prefixFile = getCompilerPrefixFile(); |
167 if (prefixFile == null || !prefixFile.toFile().exists()) { |
170 if (prefixFile == null || !prefixFile.toFile().exists()) { |
168 return getCachedData().getCompilerMacros(null); |
171 return getCachedData().getCompilerMacros(null); |
169 } |
172 } |
170 |
173 |
173 |
176 |
174 @Override |
177 @Override |
175 public String getBuildVariationName() { |
178 public String getBuildVariationName() { |
176 // Not needed for Raptor |
179 // Not needed for Raptor |
177 return ""; |
180 return ""; |
178 } |
|
179 |
|
180 @Override |
|
181 public boolean isSymbianBinaryVariation() { |
|
182 // Not be needed for Raptor. We do check |
|
183 // in the MPP for the featurevariant keyword |
|
184 return false; |
|
185 } |
181 } |
186 |
182 |
187 @Override |
183 @Override |
188 public String getSBSv2Alias() { |
184 public String getSBSv2Alias() { |
189 return sbsv2Alias; |
185 return sbsv2Alias; |
399 * @return |
395 * @return |
400 */ |
396 */ |
401 public String getConfigurationID() { |
397 public String getConfigurationID() { |
402 return getConfigID(); |
398 return getConfigID(); |
403 } |
399 } |
|
400 |
|
401 /** |
|
402 * Get the full path to the prefix file defined under \epoc32\tools\variant\variant.cfg |
|
403 * @return A path object, or null if the variant.cfg does not exist. This routine does not check to see if the returned path exists. |
|
404 */ |
|
405 public IPath getPrefixFromVariantCfg(){ |
|
406 ISBSv2BuildInfo sbsv2BldInfo = ((ISBSv2BuildInfo)getSDK().getBuildInfo(ISymbianBuilderID.SBSV2_BUILDER)); |
|
407 return sbsv2BldInfo.getPrefixFromVariantCfg(); |
|
408 } |
|
409 |
404 |
410 |
405 |
411 |
406 } |
412 } |