core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv1.java
equal
deleted
inserted
replaced
211 } |
211 } |
212 |
212 |
213 private ISBSv1BuildInfo getBuildInfo() { |
213 private ISBSv1BuildInfo getBuildInfo() { |
214 ISBSv1BuildInfo buildInfo = (ISBSv1BuildInfo)getSDK().getBuildInfo(ISymbianBuilderID.SBSV1_BUILDER); |
214 ISBSv1BuildInfo buildInfo = (ISBSv1BuildInfo)getSDK().getBuildInfo(ISymbianBuilderID.SBSV1_BUILDER); |
215 if (buildInfo == null) { |
215 if (buildInfo == null) { |
216 buildInfo = new SBSv1BuildInfo(); |
216 buildInfo = new SBSv1BuildInfo(getSDK()); |
217 ((SymbianSDK)getSDK()).setBuildInfo(buildInfo, ISymbianBuilderID.SBSV1_BUILDER); |
217 ((SymbianSDK)getSDK()).setBuildInfo(buildInfo, ISymbianBuilderID.SBSV1_BUILDER); |
218 } |
218 } |
219 return buildInfo; |
219 return buildInfo; |
220 } |
220 } |
221 |
221 |
223 // TODO: How the ASSP option affects the path? |
223 // TODO: How the ASSP option affects the path? |
224 |
224 |
225 String dirName = getDefFileDirectoryNameForPlatform(platform); |
225 String dirName = getDefFileDirectoryNameForPlatform(platform); |
226 if (dirName == null) { |
226 if (dirName == null) { |
227 // check BSF's |
227 // check BSF's |
228 IBSFCatalog catalog = getBuildInfo().getBSFCatalog(getSDK()); |
228 IBSFCatalog catalog = getBuildInfo().getBSFCatalog(); |
229 if (catalog != null) { |
229 if (catalog != null) { |
230 for (IBSFPlatform plat : catalog.getPlatforms()) { |
230 for (IBSFPlatform plat : catalog.getPlatforms()) { |
231 if (plat.getName().compareToIgnoreCase(platform) == 0) { |
231 if (plat.getName().compareToIgnoreCase(platform) == 0) { |
232 String mainPlatform = catalog.getReleasePlatform(platform); |
232 String mainPlatform = catalog.getReleasePlatform(platform); |
233 if (mainPlatform != null) { |
233 if (mainPlatform != null) { |
271 || platform.equals(ARMV6_PLATFORM) |
271 || platform.equals(ARMV6_PLATFORM) |
272 || platform.equals(ARMV6_ABIV2_PLATFORM)) { |
272 || platform.equals(ARMV6_ABIV2_PLATFORM)) { |
273 return getRVCTPrefixFilePath(); |
273 return getRVCTPrefixFilePath(); |
274 } else { |
274 } else { |
275 // check BSF's |
275 // check BSF's |
276 IBSFCatalog catalog = getBuildInfo().getBSFCatalog(getSDK()); |
276 IBSFCatalog catalog = getBuildInfo().getBSFCatalog(); |
277 if (catalog != null) { |
277 if (catalog != null) { |
278 for (IBSFPlatform plat : catalog.getPlatforms()) { |
278 for (IBSFPlatform plat : catalog.getPlatforms()) { |
279 if (plat.getName().compareToIgnoreCase(platform) == 0) { |
279 if (plat.getName().compareToIgnoreCase(platform) == 0) { |
280 String mainPlatform = catalog.getReleasePlatform(platform); |
280 String mainPlatform = catalog.getReleasePlatform(platform); |
281 if (mainPlatform != null) { |
281 if (mainPlatform != null) { |
299 // fallback for WINSCW, MSVC, etc. |
299 // fallback for WINSCW, MSVC, etc. |
300 return null; |
300 return null; |
301 } |
301 } |
302 |
302 |
303 private IPath getIncludePath() { |
303 private IPath getIncludePath() { |
304 return getBuildInfo().getIncludePath(getSDK()); |
304 return getSDK().getIncludePath(); |
305 } |
305 } |
306 |
306 |
307 private IPath getGCCEPrefixFilePath() { |
307 private IPath getGCCEPrefixFilePath() { |
308 return getIncludePath().append("gcce/gcce.h"); //$NON-NLS-1$ |
308 return getIncludePath().append("gcce/gcce.h"); //$NON-NLS-1$ |
309 } |
309 } |