in flex/flex-shared/src/com/intellij/flex/FlexCommonUtils.java [468:564]
private static boolean isSwcFromLibsFolderIncluded(final BuildConfigurationNature bcNature,
final ComponentSet componentSet,
final String swcName) {
if (swcName.equals("advancedgrids.swc")) {
return !(bcNature.isMobilePlatform() || bcNature.pureAS || componentSet == ComponentSet.SparkOnly);
}
if (swcName.equals("authoringsupport.swc")) {
return true;
}
if (swcName.equals("charts.swc")) {
return !bcNature.pureAS;
}
if (swcName.equals("core.swc")) {
return bcNature.pureAS;
}
if (swcName.equals("datavisualization.swc")) {
return !bcNature.pureAS;
}
if (swcName.endsWith("flash-integration.swc")) {
return !bcNature.pureAS;
}
if (swcName.equals("flex.swc")) {
return bcNature.pureAS;
}
if (swcName.endsWith("framework.swc")) {
return !bcNature.pureAS;
}
if (swcName.endsWith("osmf.swc")) {
return true;
}
if (swcName.endsWith("rpc.swc")) {
return !bcNature.pureAS;
}
if (swcName.endsWith("spark.swc")) {
return !bcNature.pureAS && (bcNature.isMobilePlatform() || componentSet != ComponentSet.MxOnly);
}
if (swcName.endsWith("spark_dmv.swc")) {
return !bcNature.pureAS && !bcNature.isMobilePlatform() && componentSet == ComponentSet.SparkAndMx;
}
if (swcName.endsWith("sparkskins.swc")) {
return !bcNature.pureAS && !bcNature.isMobilePlatform() && componentSet != ComponentSet.MxOnly;
}
if (swcName.endsWith("textlayout.swc")) {
return true;
}
if (swcName.endsWith("utilities.swc")) {
return true;
}
if (swcName.endsWith("asc-support.swc")) {
return true;
}
if (swcName.equals("apache.swc") ||
swcName.equals("experimental.swc")) {
return !bcNature.pureAS; // Apache Flex SDK 4.9
}
if (swcName.equals("experimental_mobile.swc")) {
return bcNature.isMobilePlatform() && !bcNature.pureAS; // Apache Flex SDK 4.11
}
if (swcName.equals("automation.swc") ||
swcName.equals("automation_agent.swc") ||
swcName.equals("automation_dmv.swc") ||
swcName.equals("automation_flashflexkit.swc") ||
swcName.equals("qtp.swc")) {
// additionally installed on top of Flex SDK 3.x
return true;
}
if (swcName.equals("starling.swc")) {
return true; // Feathers SDK
}
if (swcName.equals("feathers.swc") ||
swcName.equals("feathers-mxml.swc")) {
return !bcNature.pureAS; // Feathers SDK
}
LOG.warn("Unknown SWC in '<Flex SDK>/frameworks/libs' folder: " + swcName);
return true;
}