core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java Wed May 06 10:58:40 2009 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java Thu May 07 12:10:50 2009 -0500
@@ -41,6 +41,7 @@
private String platform;
private String target;
private String displayString = null;
+ private String symbianBuildVariationString;
private static String EMULATOR_DISPLAY_TEXT = "Emulator"; //$NON-NLS-1$
private static String PHONE_DISPLAY_TEXT = "Phone"; //$NON-NLS-1$
@@ -62,11 +63,26 @@
public SymbianBuildContext(ISymbianSDK theSDK, String thePlatform, String theTarget) {
sdkId = theSDK.getUniqueId();
- platform = thePlatform;
+ String[] platformString = thePlatform.split("\\.");
+ if (platformString != null && platformString.length == 2){
+ platform = platformString[0];
+ symbianBuildVariationString = platformString[1];
+ } else {
+ platform = thePlatform;
+ symbianBuildVariationString = "";
+ }
+
target = theTarget;
getDisplayString();
}
-
+
+ public SymbianBuildContext(ISymbianSDK theSDK, String thePlatform, String theTarget, String theBinaryVariationName) {
+ sdkId = theSDK.getUniqueId();
+ platform = thePlatform;
+ target = theTarget;
+ symbianBuildVariationString = theBinaryVariationName;
+ getDisplayString();
+ }
@Override
public int hashCode() {
@@ -141,8 +157,13 @@
} else {
displayString = displayString + SPACE_DISPLAY_TEXT + RELEASE_DISPLAY_TEXT;
}
-
- displayString = displayString + " (" + platform + ") [" + getSDK().getUniqueId() + "]"; //$NON-NLS-1$
+
+ String platDisplay = platform;
+ if (symbianBuildVariationString.length() > 0){
+ platDisplay = platform + "." + symbianBuildVariationString;
+ }
+
+ displayString = displayString + " (" + platDisplay + ") [" + getSDK().getUniqueId() + "]"; //$NON-NLS-1$
}
return displayString;
}
@@ -505,4 +526,9 @@
return compilerPrefixMacros;
}
+
+
+ public String getBuildVariationName() {
+ return symbianBuildVariationString;
+ }
}