1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Bug 344009 - Eclipse CDT uses wrong command to build static library

(crossgcc, msvc)
This commit is contained in:
Marc-Andre Laperle 2011-07-26 00:37:37 -04:00
parent d592d691aa
commit c7f03bd3d9
2 changed files with 50 additions and 2 deletions

32
cross/org.eclipse.cdt.build.crossgcc/plugin.xml Executable file → Normal file
View file

@ -78,6 +78,15 @@
isAbstract="false"
name="Cross GCC Linker"
superClass="cdt.managedbuild.tool.gnu.c.linker">
<enablement
type="ALL">
<not>
<checkBuildProperty
property="org.eclipse.cdt.build.core.buildArtefactType"
value="org.eclipse.cdt.build.core.buildArtefactType.staticLib">
</checkBuildProperty>
</not>
</enablement>
</tool>
<tool
commandLineGenerator="org.eclipse.cdt.internal.build.crossgcc.CrossCommandLineGenerator"
@ -85,6 +94,29 @@
isAbstract="false"
name="Cross G++ Linker"
superClass="cdt.managedbuild.tool.gnu.cpp.linker">
<enablement
type="ALL">
<not>
<checkBuildProperty
property="org.eclipse.cdt.build.core.buildArtefactType"
value="org.eclipse.cdt.build.core.buildArtefactType.staticLib">
</checkBuildProperty>
</not>
</enablement>
</tool>
<tool
commandLineGenerator="org.eclipse.cdt.internal.build.crossgcc.CrossCommandLineGenerator"
id="cdt.managedbuild.tool.gnu.cross.archiver"
isAbstract="false"
name="Cross GCC Archiver"
superClass="cdt.managedbuild.tool.gnu.archiver">
<enablement
type="ALL">
<checkBuildProperty
property="org.eclipse.cdt.build.core.buildArtefactType"
value="org.eclipse.cdt.build.core.buildArtefactType.staticLib">
</checkBuildProperty>
</enablement>
</tool>
</toolChain>
<projectType

View file

@ -439,14 +439,23 @@
id="org.eclipse.cdt.msvc.link.outputType.dll"
outputs="dll">
</outputType>
<enablement
type="ALL">
<not>
<checkBuildProperty
property="org.eclipse.cdt.build.core.buildArtefactType"
value="org.eclipse.cdt.build.core.buildArtefactType.staticLib">
</checkBuildProperty>
</not>
</enablement>
</tool>
<tool
command="lib"
commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}"
id="org.eclipse.cdt.msvc.lib"
name="%lib.name"
natureFilter="both"
outputFlag="/OUT:"
>
outputFlag="/OUT:">
<supportedProperties>
<property
id="org.eclipse.cdt.build.core.buildArtefactType">
@ -474,6 +483,13 @@
id="org.eclipse.cdt.msvc.lib.outputType"
outputs="lib">
</outputType>
<enablement
type="ALL">
<checkBuildProperty
property="org.eclipse.cdt.build.core.buildArtefactType"
value="org.eclipse.cdt.build.core.buildArtefactType.staticLib">
</checkBuildProperty>
</enablement>
</tool>
</toolChain>
<configuration