core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java
branchC3_BUILDER_WORK
changeset 1462 b38491fd06da
parent 1439 8266d8737e89
child 1471 62024a5fa81d
equal deleted inserted replaced
1460:26f585ac8a88 1462:b38491fd06da
    64 	}
    64 	}
    65 
    65 
    66 	private ISBSv2BuildInfo getBuildInfo() {
    66 	private ISBSv2BuildInfo getBuildInfo() {
    67 		ISBSv2BuildInfo buildInfo = (ISBSv2BuildInfo)getSDK().getBuildInfo(ISymbianBuilderID.SBSV2_BUILDER);
    67 		ISBSv2BuildInfo buildInfo = (ISBSv2BuildInfo)getSDK().getBuildInfo(ISymbianBuilderID.SBSV2_BUILDER);
    68 		if (buildInfo == null) {
    68 		if (buildInfo == null) {
    69 			buildInfo = new SBSv2BuildInfo();
    69 			buildInfo = new SBSv2BuildInfo(getSDK());
    70 			((SymbianSDK)getSDK()).setBuildInfo(buildInfo, ISymbianBuilderID.SBSV2_BUILDER);
    70 			((SymbianSDK)getSDK()).setBuildInfo(buildInfo, ISymbianBuilderID.SBSV2_BUILDER);
    71 		}
    71 		}
    72 		return buildInfo;
    72 		return buildInfo;
    73 	}
    73 	}
    74 
    74 
    83 		// TODO: How the ASSP option affects the path?
    83 		// TODO: How the ASSP option affects the path?
    84 
    84 
    85 		String dirName = getDefFileDirectoryNameForPlatform(platform);
    85 		String dirName = getDefFileDirectoryNameForPlatform(platform);
    86 		if (dirName == null) {
    86 		if (dirName == null) {
    87 			// check BSF's
    87 			// check BSF's
    88 			IBSFCatalog catalog = getBuildInfo().getBSFCatalog(getSDK());
    88 			IBSFCatalog catalog = getBuildInfo().getBSFCatalog();
    89 	    	if (catalog != null) {
    89 	    	if (catalog != null) {
    90 	    		for (IBSFPlatform plat : catalog.getPlatforms()) {
    90 	    		for (IBSFPlatform plat : catalog.getPlatforms()) {
    91 	    			if (plat.getName().compareToIgnoreCase(platform) == 0) {
    91 	    			if (plat.getName().compareToIgnoreCase(platform) == 0) {
    92 	    				String mainPlatform = catalog.getReleasePlatform(platform);
    92 	    				String mainPlatform = catalog.getReleasePlatform(platform);
    93 	    				if (mainPlatform != null) {
    93 	    				if (mainPlatform != null) {
   134 					|| platform.equals(ARMV6_PLATFORM)
   134 					|| platform.equals(ARMV6_PLATFORM)
   135 					|| platform.equals(ARMV6_ABIV2_PLATFORM)) {
   135 					|| platform.equals(ARMV6_ABIV2_PLATFORM)) {
   136 			return getRVCTPrefixFilePath();
   136 			return getRVCTPrefixFilePath();
   137 		} else {
   137 		} else {
   138 			// check BSF's
   138 			// check BSF's
   139 			IBSFCatalog catalog = getBuildInfo().getBSFCatalog(getSDK());
   139 			IBSFCatalog catalog = getBuildInfo().getBSFCatalog();
   140 	    	if (catalog != null) {
   140 	    	if (catalog != null) {
   141 	    		for (IBSFPlatform plat : catalog.getPlatforms()) {
   141 	    		for (IBSFPlatform plat : catalog.getPlatforms()) {
   142 	    			if (plat.getName().compareToIgnoreCase(platform) == 0) {
   142 	    			if (plat.getName().compareToIgnoreCase(platform) == 0) {
   143 	    				String mainPlatform = catalog.getReleasePlatform(platform);
   143 	    				String mainPlatform = catalog.getReleasePlatform(platform);
   144 	    				if (mainPlatform != null) {
   144 	    				if (mainPlatform != null) {
   162 		// fallback for WINSCW, MSVC, etc.
   162 		// fallback for WINSCW, MSVC, etc.
   163 		return null;
   163 		return null;
   164 	}
   164 	}
   165 	
   165 	
   166 	private IPath getIncludePath() {
   166 	private IPath getIncludePath() {
   167 		return getBuildInfo().getIncludePath(getSDK());
   167 		return getSDK().getIncludePath();
   168 	}
   168 	}
   169 
   169 
   170 	private IPath getGCCEPrefixFilePath() {
   170 	private IPath getGCCEPrefixFilePath() {
   171 		// TOOD: Should get from Raptor query when available
   171 		// TOOD: Should get from Raptor query when available
   172 		return getIncludePath().append("gcce/gcce.h"); //$NON-NLS-1$
   172 		return getIncludePath().append("gcce/gcce.h"); //$NON-NLS-1$