diff options
Diffstat (limited to 'org.rtems.cdt/plugin.xml')
-rw-r--r-- | org.rtems.cdt/plugin.xml | 389 |
1 files changed, 389 insertions, 0 deletions
diff --git a/org.rtems.cdt/plugin.xml b/org.rtems.cdt/plugin.xml new file mode 100644 index 0000000..9eabb6a --- /dev/null +++ b/org.rtems.cdt/plugin.xml @@ -0,0 +1,389 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.2"?> + +<!-- + Copyright (c) 2008 Embedded Brains GmbH and others. + + Embedded Brains GmbH + Obere Lagerstr. 30 + D-82178 Puchheim + Germany + rtems@embedded-brains.de + + All rights reserved. This program and the accompanying materials are made + available under the terms of the Eclipse Public License Version 1.0 ("EPL") + which accompanies this distribution and is available at + + http://www.eclipse.org/legal/epl-v10.html + + For purposes of the EPL, "Program" will mean the Content. + + Contributors: + + Sebastian Huber (Embedded Brains GmbH) - Initial API and implementation. +--> + +<plugin> + <!-- Scanner Configuration Discovery Profiles --> + <extension + id="RtemsSCDProfile" + name="RTEMS Scanner Configuration Discovery Profile" + point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile"> + <scannerInfoCollector + class="org.eclipse.cdt.make.internal.core.scannerconfig2.PerProjectSICollector" + scope="project"/> + <buildOutputProvider> + <open/> + <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/> + </buildOutputProvider> + <scannerInfoProvider providerId="specsFile"> + <run + arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" + class="org.rtems.cdt.build.RunScannerInfoProvider"/> + <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/> + </scannerInfoProvider> + </extension> + <extension + id="RtemsSCDProfileC" + name="RTEMS Scanner Configuration Discovery Profile" + point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile"> + <scannerInfoCollector + class="org.eclipse.cdt.make.internal.core.scannerconfig2.PerProjectSICollector" + scope="project"/> + <buildOutputProvider> + <open/> + <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/> + </buildOutputProvider> + <scannerInfoProvider providerId="specsFile"> + <run + arguments="-E -P -v -dD ${plugin_state_location}/specs.c" + class="org.rtems.cdt.build.RunScannerInfoProvider"/> + <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/> + </scannerInfoProvider> + </extension> + <extension + id="RtemsSCDProfileCPP" + name="RTEMS Scanner Configuration Discovery Profile" + point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile"> + <scannerInfoCollector + class="org.eclipse.cdt.make.internal.core.scannerconfig2.PerProjectSICollector" + scope="project"/> + <buildOutputProvider> + <open/> + <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/> + </buildOutputProvider> + <scannerInfoProvider providerId="specsFile"> + <run + arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" + class="org.rtems.cdt.build.RunScannerInfoProvider"/> + <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/> + </scannerInfoProvider> + </extension> + <extension + id="RtemsSCDProfileWin" + name="RTEMS Scanner Configuration Discovery Profile (Windows)" + point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile"> + <scannerInfoCollector + class="org.rtems.cdt.build.CygwinScannerInfoCollector" + scope="project"/> + <buildOutputProvider> + <open/> + <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/> + </buildOutputProvider> + <scannerInfoProvider providerId="specsFile"> + <run + arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" + class="org.rtems.cdt.build.CygwinRunScannerInfoProvider"/> + <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/> + </scannerInfoProvider> + </extension> + <extension + id="RtemsSCDProfileWinC" + name="RTEMS Scanner Configuration Discovery Profile (Windows)" + point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile"> + <scannerInfoCollector + class="org.rtems.cdt.build.CygwinScannerInfoCollector" + scope="project"/> + <buildOutputProvider> + <open/> + <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/> + </buildOutputProvider> + <scannerInfoProvider providerId="specsFile"> + <run + arguments="-E -P -v -dD ${plugin_state_location}/specs.c" + class="org.rtems.cdt.build.CygwinRunScannerInfoProvider"/> + <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/> + </scannerInfoProvider> + </extension> + <extension + id="RtemsSCDProfileWinCPP" + name="RTEMS Scanner Configuration Discovery Profile (Windows)" + point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile"> + <scannerInfoCollector + class="org.rtems.cdt.build.CygwinScannerInfoCollector" + scope="project"/> + <buildOutputProvider> + <open/> + <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/> + </buildOutputProvider> + <scannerInfoProvider providerId="specsFile"> + <run + arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" + class="org.rtems.cdt.build.CygwinRunScannerInfoProvider"/> + <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/> + </scannerInfoProvider> + </extension> + + <!-- Build Definitions --> + <extension + id="org.rtems.cdt.build" + point="org.eclipse.cdt.managedbuilder.core.buildDefinitions"> + + <!-- Configuration --> + <configuration + id="org.rtems.cdt.config.base" + name="RTEMS Configuration" + cleanCommand="rm -rf" + artifactExtension="exe"> + <enablement type="CONTAINER_ATTRIBUTE" + attribute="artifactExtension" + value="a" + extensionAdjustment="false"> + <checkBuildProperty + property="org.eclipse.cdt.build.core.buildArtefactType" + value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/> + </enablement> + </configuration> + + <!-- Toolchain (Standard) --> + <toolChain + archList="all" + configurationEnvironmentSupplier="org.rtems.cdt.build.EnvironmentSupplier" + id="org.rtems.cdt.toolchain" + name="RTEMS Toolchain" + osList="all" + scannerConfigDiscoveryProfileId="org.rtems.cdt.RtemsSCDProfile" + targetTool="org.rtems.cdt.linker.c;org.rtems.cdt.linker.cpp;org.rtems.cdt.archiver"> + <targetPlatform + id="org.rtems.cdt.target" + name="RTEMS Target" + binaryParser="org.eclipse.cdt.core.ELF" + osList="all" + archList="all"> + </targetPlatform> + <builder + id="org.rtems.cdt.builder" + superClass="cdt.managedbuild.target.gnu.builder"/> + <tool + id="org.rtems.cdt.assembler" + superClass="cdt.managedbuild.tool.gnu.assembler" + commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator"> + </tool> + <tool + id="org.rtems.cdt.compiler.c" + superClass="cdt.managedbuild.tool.gnu.c.compiler" + commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator"> + <inputType + id="org.rtems.cdt.compiler.input.c" + superClass="cdt.managedbuild.tool.gnu.c.compiler.input" + scannerConfigDiscoveryProfileId="org.rtems.cdt.RtemsSCDProfileC"/> + </tool> + <tool + id="org.rtems.cdt.compiler.cpp" + superClass="cdt.managedbuild.tool.gnu.cpp.compiler" + commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator"> + <inputType + id="org.rtems.cdt.compiler.cpp.input" + superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input" + scannerConfigDiscoveryProfileId="org.rtems.cdt.RtemsSCDProfileCPP"/> + </tool> + <tool + id="org.rtems.cdt.linker.c" + superClass="cdt.managedbuild.tool.gnu.c.linker" + commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator"> + <enablement type="ALL"> + <not> + <checkBuildProperty + property="org.eclipse.cdt.build.core.buildArtefactType" + value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/> + </not> + </enablement> + </tool> + <tool + id="org.rtems.cdt.linker.cpp" + superClass="cdt.managedbuild.tool.gnu.cpp.linker" + commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator"> + <enablement type="ALL"> + <not> + <checkBuildProperty + property="org.eclipse.cdt.build.core.buildArtefactType" + value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/> + </not> + </enablement> + </tool> + <tool + id="org.rtems.cdt.archiver" + superClass="cdt.managedbuild.tool.gnu.archiver" + commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator"> + <enablement type="ALL"> + <checkBuildProperty + property="org.eclipse.cdt.build.core.buildArtefactType" + value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/> + </enablement> + </tool> + </toolChain> + + <!-- Toolchain (Cygwin) --> + <toolChain + id="org.rtems.cdt.toolchain.cygwin" + name="RTEMS Toolchain (Cygwin)" + archList="all" + osList="win32" + targetTool="org.rtems.cdt.linker.c.cygwin;org.rtems.cdt.linker.cpp.cygwin;org.rtems.cdt.archiver.cygwin" + configurationEnvironmentSupplier="org.rtems.cdt.build.CygwinEnvironmentSupplier" + isToolChainSupported="org.eclipse.cdt.managedbuilder.gnu.cygwin.IsGnuCygwinToolChainSupported" + scannerConfigDiscoveryProfileId="org.rtems.cdt.RtemsSCDProfileWin"> + <targetPlatform + id="org.rtems.cdt.target.cygwin" + name="RTEMS Target" + binaryParser="org.eclipse.cdt.core.ELF" + osList="all" + archList="all"> + </targetPlatform> + <builder + id="org.rtems.cdt.builder.cygwin" + superClass="cdt.managedbuild.target.gnu.builder"/> + <tool + id="org.rtems.cdt.assembler.cygwin" + superClass="cdt.managedbuild.tool.gnu.assembler" + commandLineGenerator="org.rtems.cdt.build.CygwinCommandLineGenerator"> + </tool> + <tool + id="org.rtems.cdt.compiler.c.cygwin" + superClass="cdt.managedbuild.tool.gnu.c.compiler.cygwin" + commandLineGenerator="org.rtems.cdt.build.CygwinCommandLineGenerator"> + <inputType + id="org.rtems.cdt.compiler.input.c.cygwin" + superClass="cdt.managedbuild.tool.gnu.c.compiler.input.cygwin" + scannerConfigDiscoveryProfileId="org.rtems.cdt.RtemsSCDProfileWinC"/> + </tool> + <tool + id="org.rtems.cdt.compiler.cpp.cygwin" + superClass="cdt.managedbuild.tool.gnu.cpp.compiler.cygwin" + commandLineGenerator="org.rtems.cdt.build.CygwinCommandLineGenerator"> + <inputType + id="org.rtems.cdt.compiler.cpp.input.cygwin" + scannerConfigDiscoveryProfileId="org.rtems.cdt.RtemsSCDProfileWinCPP" + superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin"/> + </tool> + <tool + id="org.rtems.cdt.linker.c.cygwin" + superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin" + commandLineGenerator="org.rtems.cdt.build.CygwinCommandLineGenerator"> + <enablement type="ALL"> + <not> + <checkBuildProperty + property="org.eclipse.cdt.build.core.buildArtefactType" + value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/> + </not> + </enablement> + </tool> + <tool + id="org.rtems.cdt.linker.cpp.cygwin" + superClass="cdt.managedbuild.tool.gnu.cpp.linker.cygwin" + commandLineGenerator="org.rtems.cdt.build.CygwinCommandLineGenerator"> + <enablement type="ALL"> + <not> + <checkBuildProperty + property="org.eclipse.cdt.build.core.buildArtefactType" + value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/> + </not> + </enablement> + </tool> + <tool + id="org.rtems.cdt.archiver.cygwin" + superClass="cdt.managedbuild.tool.gnu.archiver" + commandLineGenerator="org.rtems.cdt.build.CygwinCommandLineGenerator"> + <enablement type="ALL"> + <checkBuildProperty + property="org.eclipse.cdt.build.core.buildArtefactType" + value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/> + </enablement> + </tool> + </toolChain> + + <!-- Project Type --> + <projectType + buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" + id="org.rtems.cdt.projectType" + name="RTEMS Executable"> + <configuration + id="org.rtems.cdt.config" + name="RTEMS Executable Configuration" + parent="org.rtems.cdt.config.base"> + <toolChain + id="org.rtems.cdt.config.toolchain" + superClass="org.rtems.cdt.toolchain"> + </toolChain> + </configuration> + <configuration + id="org.rtems.cdt.config.cygwin" + name="RTEMS Executable Configuration" + parent="org.rtems.cdt.config.base"> + <toolChain + id="org.rtems.cdt.config.toolchain.cygwin" + superClass="org.rtems.cdt.toolchain.cygwin"> + </toolChain> + </configuration> + </projectType> + </extension> + + <!-- New Project Wizard --> + <extension + point="org.eclipse.cdt.managedbuilder.ui.newWizardPages"> + <wizardPage + ID="org.rtems.cdt.wizards.BasicSetup" + operationClass="org.rtems.cdt.wizards.FinishSetup" + pageClass="org.rtems.cdt.wizards.BasicSetup"/> + </extension> + + <!-- Preferences --> + <extension + point="org.eclipse.ui.preferencePages"> + <page + category="org.eclipse.cdt.ui.preferences.CPluginPreferencePage" + class="org.rtems.cdt.preferences.PreferencePage" + id="org.rtems.cdt.preferences.PreferencePage" + name="RTEMS"> + </page> + </extension> + <extension + point="org.eclipse.core.runtime.preferences"> + <initializer + class="org.rtems.cdt.preferences.PreferenceInitializer"/> + </extension> + + <!-- Properties --> + <extension + point="org.eclipse.ui.propertyPages"> + <page + category="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build" + class="org.rtems.cdt.properties.PropertyPage" + id="org.rtems.cdt.properties.PropertyPage" + name="RTEMS"> + <filter + name="projectNature" + value="org.eclipse.cdt.managedbuilder.core.managedBuildNature"/> + <enabledWhen> + <or> + <instanceof value="org.eclipse.cdt.core.model.ICContainer"/> + <instanceof value="org.eclipse.cdt.core.model.ICProject"/> + <instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/> + <instanceof value="org.eclipse.core.resources.IFile"/> + <instanceof value="org.eclipse.core.resources.IFolder"/> + <instanceof value="org.eclipse.core.resources.IProject"/> + </or> + </enabledWhen> + </page> + </extension> +</plugin> |