Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Evoy2004-05-10 15:44:32 +0000
committerSean Evoy2004-05-10 15:44:32 +0000
commit08c13e8969a6914f48a58420de73389388da0e19 (patch)
tree7fc1088741cf6af1e73a3cef78eca96ab4cb75c5 /build/org.eclipse.cdt.managedbuilder.ui/src
parente40dd5c703980dec3b7a5f28af222f5a072cf841 (diff)
downloadorg.eclipse.cdt-08c13e8969a6914f48a58420de73389388da0e19.tar.gz
org.eclipse.cdt-08c13e8969a6914f48a58420de73389388da0e19.tar.xz
org.eclipse.cdt-08c13e8969a6914f48a58420de73389388da0e19.zip
External commit for Leo Treggiari. The archList attribute of the target object specifies the list of architectures that the target is supported on. The valid list of architectures is the string values returned by BootLoader.getOSArch(). If the archList attribute is not specified, or if the value is "all", then the target is supported on all architectures. Otherwise, the target is only displayed when CDT is running on one of the specified architectures, unless the user has requested to see all targets.
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.ui/src')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java
index d46d2f98c4..81fe232bfe 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java
@@ -291,6 +291,7 @@ public class CProjectPlatformPage extends WizardPage {
ITarget[] allTargets = ManagedBuildManager.getDefinedTargets(null);
targets = new ArrayList();
String os = BootLoader.getOS();
+ String arch = BootLoader.getOSArch();
// Add all of the concrete targets to the target list
for (int index = 0; index < allTargets.length; ++index) {
ITarget target = allTargets[index];
@@ -299,9 +300,13 @@ public class CProjectPlatformPage extends WizardPage {
if (showAll != null && showAll.getSelection() == true) {
targets.add(target);
} else {
+ // Apply the OS and ARCH filters to determine if the target should be shown
List targetOSList = Arrays.asList(target.getTargetOSList());
if (targetOSList.contains("all") || targetOSList.contains(os)) { //$NON-NLS-1$
- targets.add(target);
+ List targetArchList = Arrays.asList(target.getTargetArchList());
+ if (targetArchList.contains("all") || targetArchList.contains(arch)) { //$NON-NLS-1$
+ targets.add(target);
+ }
}
}
}

Back to the top