# HG changeset patch # User timkelly # Date 1280781522 18000 # Node ID ca1f574a1eccda9357d4e1ea14ea30ab5eaf365f # Parent 5f659a59d04aedd5ef40e3c269f6c1098ca9b832 refactored from public API package. diff -r 5f659a59d04a -r ca1f574a1ecc core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/ISBSv1BuildContext.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/ISBSv1BuildContext.java Mon Aug 02 15:38:42 2010 -0500 @@ -0,0 +1,34 @@ +package com.nokia.carbide.cpp.internal.api.sdk; + +import com.nokia.carbide.cpp.sdk.core.ISymbianBuildContext; + +/** + * Build Context specific information for the SBS/Raptor Symbian Builder. + * @see ICarbideBuildConfigation + * @since 3.0 + * @deprecated - ABLD is dead. + * + */ +public interface ISBSv1BuildContext extends ISymbianBuildContext { + + /** + * Platform constants + */ + public static final String EMULATOR_PLATFORM = "WINSCW"; + public static final String GCCE_PLATFORM = "GCCE"; + public static final String ARMV5_PLATFORM = "ARMV5"; + public static final String ARMV6_PLATFORM = "ARMV6"; + public static final String ARMV5_ABIV2_PLATFORM = "ARMV5_ABIV2"; + public static final String ARMV6_ABIV2_PLATFORM = "ARMV6_ABIV2"; + + /** + * For Symbian Bianry Variation, platforms will be names . + * So in some cases you need to know only the platforms that the variant is based on. + * For example, a build platform name of "armv5.myvariant" will return "armv5". + * @return The base platform string. + * @see isSymbianBinaryVariation() + * @since 2.0 + */ + public String getBasePlatformForVariation(); + +} diff -r 5f659a59d04a -r ca1f574a1ecc core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/ISBSv2BuildContext.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/ISBSv2BuildContext.java Mon Aug 02 15:38:42 2010 -0500 @@ -0,0 +1,77 @@ +package com.nokia.carbide.cpp.internal.api.sdk; + +import java.util.List; + +import org.eclipse.core.runtime.IPath; + +import com.nokia.carbide.cpp.sdk.core.ISymbianBuildContext; + +/** + * Build Context specific information for the SBS/Raptor Symbian Builder. + * @see ICarbideBuildConfigation + * @since 3.0 + * + */ +public interface ISBSv2BuildContext extends ISymbianBuildContext { + + public static final String BUILDER_ID = "com.nokia.carbide.builder.raptor"; + + public static final String TOOLCHAIN_ARM = "ARM"; + public static final String TOOLCHAIN_GCCE = "GCCE"; + public static final String TOOLCHAIN_WINSCW = "WINSCW"; + public static final String TOOLCHAIN_UNKNOWN = "UNKNOWN"; + + public static final String MACRO_ARM = "__ARMCC__"; + public static final String MACRO_GCCE = "__GCCE__"; + public static final String MACRO_WINSCW = "__WINSCW__"; + + /** + * Retrieve the build-able configuration; a valid command that cab be passed with Raptor's -c parameter. + * This should not be used and should return null for abld-configurations. + * @return the configuration name, or null if none. + */ + public String getSBSv2Alias(); + + /** + * Get the unique configuration ID for the SBSv2 build configuration. + * @return configuration ID + */ + public String getConfigID(); + + /** + * Get the implicit directory searched for *.def files by the DEFFILE statement. + * @return bare directory name (e.g. 'BWINS', 'BMARM', 'EABI') + */ + public String getDefaultDefFileDirectoryName(); + + /** + * Get stored result from Raptor config query. + * @return ISBSv2ConfigQueryData object + */ + public ISBSv2ConfigQueryData getConfigQueryData(); + + /** + * Get tool chain for the build context + * @return tool chain name (e.g. 'ARM', 'GCCE', 'WINSCW') + */ + public String getToolChain(); + + /** + * Get system include paths returned by Raptor config query. + * @return list of include paths + */ + public List getSystemIncludes(); + + /** + * Retrieve the actual \epoc32\release directory a binary is targeted for. + * @return + */ + public String getPlatformReleaseDirName(); + + /** + * Get the supported targettypes for this build configuration + * @return + */ + public List getSupportedTargettypes(); + +} diff -r 5f659a59d04a -r ca1f574a1ecc core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/ISBSv2ConfigQueryData.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/ISBSv2ConfigQueryData.java Mon Aug 02 15:38:42 2010 -0500 @@ -0,0 +1,21 @@ +package com.nokia.carbide.cpp.internal.api.sdk; + +import java.io.Serializable; +import java.util.List; +import java.util.Map; + +/** + * Interface to interact directly with results for Raptor configuration query data (--query=config{<config>]) + * @since 3.0 + */ +public interface ISBSv2ConfigQueryData extends Serializable { + public String getAlias(); + public String getBuildPrefix(); + public Map getBuildMacros(); + public String getConfigurationErrorMessage(); + public Map getMetaDataMacros(); + public List getMetaDataIncludes(); + public String getMetaDataVariantHRH(); + public String getOutputPathString(); + public List getTargettypes(); +}