core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SBSv2Utils.java
equal
deleted
inserted
replaced
447 } |
447 } |
448 }); |
448 }); |
449 |
449 |
450 return contexts; |
450 return contexts; |
451 } |
451 } |
452 |
452 |
|
453 /** |
|
454 * If a variant is defined and it changes the output directory, return the directory name. |
|
455 * For example, armv5_udeb.phone1 would return '.phone1'. If not variant that changes the release tree, then null |
|
456 * NOTE: This method deals with variant text applied to the end of a build alias, specifically testing for |
|
457 * variant text defined in the SBSv2 Build Configuration tab. |
|
458 * @return null if not a variant or the value to append to the platform release tree directory |
|
459 * @see com.nokia.carbide.cdt.internal.builder.ui#SBSv2BuildConfigTab |
|
460 */ |
|
461 public static String getVariantOutputDirModifier(String variantText) { |
|
462 |
|
463 String[] ignoredVariants = { "generic", "tracecompiler", "trace", "test", "savespace", |
|
464 "bfc", "smp", "rvct2_2", "rvct4_0", "rvct3_1", "gcce4_3_2", "remove_freeze" }; |
|
465 |
|
466 String newOutputDir = null; |
|
467 if (variantText != null && variantText.length() > 1){ |
|
468 String[] variantTok = variantText.split("\\."); |
|
469 if (variantTok.length > 1){ |
|
470 for (String ignore : ignoredVariants){ |
|
471 if (variantTok[1].toLowerCase().equals(ignore)) |
|
472 return null; |
|
473 } |
|
474 newOutputDir = "." + variantTok[1]; |
|
475 } |
|
476 } |
|
477 return newOutputDir; |
|
478 } |
453 } |
479 } |