1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +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" isAbstract="false"
name="Cross GCC Linker" name="Cross GCC Linker"
superClass="cdt.managedbuild.tool.gnu.c.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>
<tool <tool
commandLineGenerator="org.eclipse.cdt.internal.build.crossgcc.CrossCommandLineGenerator" commandLineGenerator="org.eclipse.cdt.internal.build.crossgcc.CrossCommandLineGenerator"
@ -85,6 +94,29 @@
isAbstract="false" isAbstract="false"
name="Cross G++ Linker" name="Cross G++ Linker"
superClass="cdt.managedbuild.tool.gnu.cpp.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> </tool>
</toolChain> </toolChain>
<projectType <projectType

View file

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