1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Converted xlC toolchain

This commit is contained in:
Andrew Gvozdev 2011-09-10 12:45:04 -04:00
parent 3b616cdefa
commit c5586cefba
2 changed files with 59 additions and 48 deletions

View file

@ -110,13 +110,17 @@ public class ScannerDiscoveryLegacySupport {
legacyProfiles = new HashMap<String, String>(); legacyProfiles = new HashMap<String, String>();
// InputTypes // InputTypes
// legacyProfiles.put(inputTypeId, scannerConfigDiscoveryProfileId);
legacyProfiles.put("cdt.managedbuild.tool.gnu.c.compiler.input", "org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC|org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"); legacyProfiles.put("cdt.managedbuild.tool.gnu.c.compiler.input", "org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC|org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile");
legacyProfiles.put("cdt.managedbuild.tool.gnu.cpp.compiler.input", "org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP|org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile"); legacyProfiles.put("cdt.managedbuild.tool.gnu.cpp.compiler.input", "org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP|org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile");
legacyProfiles.put("cdt.managedbuild.tool.gnu.c.compiler.input.cygwin", "org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC"); legacyProfiles.put("cdt.managedbuild.tool.gnu.c.compiler.input.cygwin", "org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC");
legacyProfiles.put("cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin", "org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP"); legacyProfiles.put("cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin", "org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP");
legacyProfiles.put("cdt.managedbuild.tool.xlc.c.compiler.input", "org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfile");
legacyProfiles.put("cdt.managedbuild.tool.xlc.cpp.c.compiler.input", "org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfile");
legacyProfiles.put("cdt.managedbuild.tool.xlc.cpp.compiler.input", "org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfileCPP");
// Toolchains // Toolchains
// legacyProfiles.put(, ); // legacyProfiles.put(toolchainId, scannerConfigDiscoveryProfileId);
} }
return legacyProfiles.get(id); return legacyProfiles.get(id);

View file

@ -522,18 +522,19 @@
name="%TargetName.xlc.exe" name="%TargetName.xlc.exe"
projectMacroSupplier="org.eclipse.cdt.managedbuilder.xlc.ui.XLCProjectMacroSupplier"> projectMacroSupplier="org.eclipse.cdt.managedbuilder.xlc.ui.XLCProjectMacroSupplier">
<configuration <configuration
name="%ConfigName.Dbg" artifactExtension="exe"
artifactExtension="exe" cleanCommand="rm -rf"
cleanCommand="rm -rf" errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser"
errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser" id="cdt.managedbuild.config.xlc.exe.debug"
id="cdt.managedbuild.config.xlc.exe.debug"> languageSettingsProviders="org.eclipse.cdt.ui.user.LanguageSettingsProvider;org.eclipse.cdt.managedbuilder.core.LanguageSettingsProvider;${Toolchain};-org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser"
name="%ConfigName.Dbg">
<toolChain <toolChain
archList="all" archList="all"
configurationEnvironmentSupplier="org.eclipse.cdt.managedbuilder.xlc.aix.AixConfigurationEnvironmentSupplier" configurationEnvironmentSupplier="org.eclipse.cdt.managedbuilder.xlc.aix.AixConfigurationEnvironmentSupplier"
id="cdt.managedbuild.toolchain.xlc.exe.debug" id="cdt.managedbuild.toolchain.xlc.exe.debug"
name="%ToolChainName.Dbg" name="%ToolChainName.Dbg"
osList="all" osList="all"
scannerConfigDiscoveryProfileId="org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfileCPP" languageSettingsProviders="org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser;*org.eclipse.cdt.managedbuilder.xlc.core.xlc.specs.detector"
targetTool="cdt.managedbuild.tool.xlc.c.linker.exe.debug;cdt.managedbuild.tool.xlc.cpp.linker.exe.debug"> targetTool="cdt.managedbuild.tool.xlc.c.linker.exe.debug;cdt.managedbuild.tool.xlc.cpp.linker.exe.debug">
<targetPlatform <targetPlatform
id="cdt.managedbuild.target.xlc.platform.exe.debug" id="cdt.managedbuild.target.xlc.platform.exe.debug"
@ -588,17 +589,18 @@
</toolChain> </toolChain>
</configuration> </configuration>
<configuration <configuration
name="%ConfigName.Rel" name="%ConfigName.Rel"
artifactExtension="exe" artifactExtension="exe"
cleanCommand="rm -rf" cleanCommand="rm -rf"
errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser" errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser"
id="cdt.managedbuild.config.xlc.exe.release"> languageSettingsProviders="org.eclipse.cdt.ui.user.LanguageSettingsProvider;org.eclipse.cdt.managedbuilder.core.LanguageSettingsProvider;${Toolchain};-org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser"
id="cdt.managedbuild.config.xlc.exe.release">
<toolChain <toolChain
archList="all" archList="all"
id="cdt.managedbuild.toolchain.xlc.exe.release" id="cdt.managedbuild.toolchain.xlc.exe.release"
name="%ToolChainName.Rel" name="%ToolChainName.Rel"
osList="all" osList="all"
scannerConfigDiscoveryProfileId="org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfileCPP" languageSettingsProviders="org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser;*org.eclipse.cdt.managedbuilder.xlc.core.xlc.specs.detector"
targetTool="cdt.managedbuild.tool.xlc.c.linker.exe.release;cdt.managedbuild.tool.xlc.cpp.linker.exe.release"> targetTool="cdt.managedbuild.tool.xlc.c.linker.exe.release;cdt.managedbuild.tool.xlc.cpp.linker.exe.release">
<targetPlatform <targetPlatform
id="cdt.managedbuild.target.xlc.platform.exe.release" id="cdt.managedbuild.target.xlc.platform.exe.release"
@ -661,15 +663,17 @@
name="%TargetName.xlc.so" name="%TargetName.xlc.so"
projectMacroSupplier="org.eclipse.cdt.managedbuilder.xlc.ui.XLCProjectMacroSupplier"> projectMacroSupplier="org.eclipse.cdt.managedbuilder.xlc.ui.XLCProjectMacroSupplier">
<configuration <configuration
name="%ConfigName.Dbg" name="%ConfigName.Dbg"
cleanCommand="rm -rf" cleanCommand="rm -rf"
artifactExtension="so" artifactExtension="so"
errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser" errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser"
id="cdt.managedbuild.config.xlc.so.debug"> languageSettingsProviders="org.eclipse.cdt.ui.user.LanguageSettingsProvider;org.eclipse.cdt.managedbuilder.core.LanguageSettingsProvider;${Toolchain};-org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser"
id="cdt.managedbuild.config.xlc.so.debug">
<toolChain <toolChain
name="%ToolChainName.Dbg" id="cdt.managedbuild.toolchain.xlc.so.debug"
targetTool="cdt.managedbuild.tool.xlc.c.linker.so.debug;cdt.managedbuild.tool.xlc.cpp.linker.so.debug" languageSettingsProviders="org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser;*org.eclipse.cdt.managedbuilder.xlc.core.xlc.specs.detector"
id="cdt.managedbuild.toolchain.xlc.so.debug"> name="%ToolChainName.Dbg"
targetTool="cdt.managedbuild.tool.xlc.c.linker.so.debug;cdt.managedbuild.tool.xlc.cpp.linker.so.debug">
<targetPlatform <targetPlatform
id="cdt.managedbuild.target.xlc.platform.so.debug" id="cdt.managedbuild.target.xlc.platform.so.debug"
name="%PlatformName.Dbg" name="%PlatformName.Dbg"
@ -723,15 +727,17 @@
</toolChain> </toolChain>
</configuration> </configuration>
<configuration <configuration
name="%ConfigName.Rel" name="%ConfigName.Rel"
cleanCommand="rm -rf" cleanCommand="rm -rf"
artifactExtension="so" artifactExtension="so"
errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser" errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser"
id="cdt.managedbuild.config.xlc.so.release"> languageSettingsProviders="org.eclipse.cdt.ui.user.LanguageSettingsProvider;org.eclipse.cdt.managedbuilder.core.LanguageSettingsProvider;${Toolchain};-org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser"
id="cdt.managedbuild.config.xlc.so.release">
<toolChain <toolChain
name="%ToolChainName.Rel" id="cdt.managedbuild.toolchain.xlc.so.release"
targetTool="cdt.managedbuild.tool.xlc.c.linker.so.release;cdt.managedbuild.tool.xlc.cpp.linker.so.release" languageSettingsProviders="org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser;*org.eclipse.cdt.managedbuilder.xlc.core.xlc.specs.detector"
id="cdt.managedbuild.toolchain.xlc.so.release"> name="%ToolChainName.Rel"
targetTool="cdt.managedbuild.tool.xlc.c.linker.so.release;cdt.managedbuild.tool.xlc.cpp.linker.so.release">
<targetPlatform <targetPlatform
id="cdt.managedbuild.target.xlc.platform.so.release" id="cdt.managedbuild.target.xlc.platform.so.release"
name="%PlatformName.Rel" name="%PlatformName.Rel"
@ -793,15 +799,17 @@
name="%TargetName.xlc.lib" name="%TargetName.xlc.lib"
projectMacroSupplier="org.eclipse.cdt.managedbuilder.xlc.ui.XLCProjectMacroSupplier"> projectMacroSupplier="org.eclipse.cdt.managedbuilder.xlc.ui.XLCProjectMacroSupplier">
<configuration <configuration
name="%ConfigName.Dbg" name="%ConfigName.Dbg"
cleanCommand="rm -rf" cleanCommand="rm -rf"
artifactExtension="lib" artifactExtension="lib"
errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser" errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser"
id="cdt.managedbuild.config.xlc.lib.debug"> languageSettingsProviders="org.eclipse.cdt.ui.user.LanguageSettingsProvider;org.eclipse.cdt.managedbuilder.core.LanguageSettingsProvider;${Toolchain};-org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser"
id="cdt.managedbuild.config.xlc.lib.debug">
<toolChain <toolChain
name="%ToolChainName.Dbg" id="cdt.managedbuild.toolchain.xlc.lib.debug"
targetTool="cdt.managedbuild.tool.xlc.archiver.lib.debug" languageSettingsProviders="org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser;*org.eclipse.cdt.managedbuilder.xlc.core.xlc.specs.detector"
id="cdt.managedbuild.toolchain.xlc.lib.debug"> name="%ToolChainName.Dbg"
targetTool="cdt.managedbuild.tool.xlc.archiver.lib.debug">
<targetPlatform <targetPlatform
id="cdt.managedbuild.target.xlc.platform.lib.debug" id="cdt.managedbuild.target.xlc.platform.lib.debug"
name="%PlatformName.Dbg" name="%PlatformName.Dbg"
@ -851,15 +859,17 @@
</toolChain> </toolChain>
</configuration> </configuration>
<configuration <configuration
name="%ConfigName.Rel" name="%ConfigName.Rel"
cleanCommand="rm -rf" cleanCommand="rm -rf"
artifactExtension="lib" artifactExtension="lib"
errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser" errorParsers="org.eclipse.cdt.errorparsers.xlc.XlcErrorParser"
id="cdt.managedbuild.config.xlc.lib.release"> languageSettingsProviders="org.eclipse.cdt.ui.user.LanguageSettingsProvider;org.eclipse.cdt.managedbuilder.core.LanguageSettingsProvider;${Toolchain};-org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser"
id="cdt.managedbuild.config.xlc.lib.release">
<toolChain <toolChain
name="%ToolChainName.Rel" id="cdt.managedbuild.toolchain.xlc.lib.release"
targetTool="cdt.managedbuild.tool.xlc.archiver.lib.release" languageSettingsProviders="org.eclipse.cdt.managedbuilder.xlc.core.xlc.build.command.parser;*org.eclipse.cdt.managedbuilder.xlc.core.xlc.specs.detector"
id="cdt.managedbuild.toolchain.xlc.lib.release"> name="%ToolChainName.Rel"
targetTool="cdt.managedbuild.tool.xlc.archiver.lib.release">
<targetPlatform <targetPlatform
id="cdt.managedbuild.target.xlc.platform.lib.release" id="cdt.managedbuild.target.xlc.platform.lib.release"
name="%PlatformName.Rel" name="%PlatformName.Rel"
@ -3732,7 +3742,6 @@
id="cdt.managedbuild.tool.xlc.c.compiler.input" id="cdt.managedbuild.tool.xlc.c.compiler.input"
name="%inputType.c.name" name="%inputType.c.name"
primaryInput="true" primaryInput="true"
scannerConfigDiscoveryProfileId="org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfile"
sourceContentType="org.eclipse.cdt.core.cSource" sourceContentType="org.eclipse.cdt.core.cSource"
sources="c"> sources="c">
</inputType> </inputType>
@ -3753,7 +3762,6 @@
id="cdt.managedbuild.tool.xlc.cpp.c.compiler.input" id="cdt.managedbuild.tool.xlc.cpp.c.compiler.input"
name="%inputType.c.name.2" name="%inputType.c.name.2"
primaryInput="true" primaryInput="true"
scannerConfigDiscoveryProfileId="org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfile"
sourceContentType="org.eclipse.cdt.core.cSource" sourceContentType="org.eclipse.cdt.core.cSource"
sources="c"> sources="c">
</inputType> </inputType>
@ -3763,7 +3771,6 @@
id="cdt.managedbuild.tool.xlc.cpp.compiler.input" id="cdt.managedbuild.tool.xlc.cpp.compiler.input"
name="%inputType.cpp.name" name="%inputType.cpp.name"
primaryInput="true" primaryInput="true"
scannerConfigDiscoveryProfileId="org.eclipse.cdt.managedbuilder.xlc.core.XLCManagedMakePerProjectProfileCPP"
sourceContentType="org.eclipse.cdt.core.cxxSource" sourceContentType="org.eclipse.cdt.core.cxxSource"
sources="c,C,cc,cxx,cpp"> sources="c,C,cc,cxx,cpp">
</inputType> </inputType>