Extending CDT configurations/tools [message #140505] |
Thu, 10 March 2005 06:55  |
Eclipse User |
|
|
|
Hi,
I'm currently trying to integrate the Cantata++ software testing tool into
Eclipse with CDT. The way the tool works is to insert a compiler driver in
front of the call to the compiler. So if you normally compiled your code
with:
gcc -c my_file.c
you could call Cantata++ and compile it by using:
ipg_comp --comp my_file.c
The equivalent also applies to the linking step.
To do this I've created a plugin that use the extension point
org.eclipse.cdt.managedbuilder.core.buildDefinitions. The plugin then
defines a 'Cantata++ Test Executable' projectType, with 2 configurations,
each configuration has a tool chain and each tool chain defines new C/C++
compiler and linker commands. The debug toolchain has
cdt.managedbuild.toolchain.gnu.cygwin.exe.debug as it's superclass and
I've got the compiler working fine by using
<tool
command="ipg_comp --gcc --quiet --optfile ../ipg.cop --comp g++"
name="C++ Compiler"
id="com.ipl.cantpp.eclipse.win32.debug.cpp.compiler"
superClass="cdt.managedbuild.tool.gnu.cpp.compiler.cygwin.exe.debug ">
</tool>
But if I use the equivalent for the linker:
<tool
command="ipg_comp --gcc --quiet --optfile ../ipg.cop --link g++"
name="C++ Linker"
id="com.ipl.cantpp.eclipse.win32.debug.cpp.linker"
superClass="cdt.managedbuild.tool.gnu.cpp.linker.cygwin.exe.debug ">
</tool>
The makefile contains:
dummy_project: $(OBJS)
@echo 'Building target: $@'
null null $@ $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building: $@'
Obviously the 'null null' means that this doesn't work. If I use
cdt.managedbuild.tool.gnu.cpp.linker as the superclass the makefile is
written out correctly but I get entries for both my "C++ Linker" and also
the "GNU C++ Linker" that is being inherited from the toolchain's
superclass.
Any ideas why I can get this working for the compiler and not the linker?
If I've not given enough information to work out what I mean let me know
and I can try and explain it in more detail.
Cheers,
Richard
|
|
|
|
Re: Extending CDT configurations/tools [message #1749327 is a reply to message #1749308] |
Mon, 05 December 2016 10:09  |
Eclipse User |
|
|
|
Hi Dinesh,
I hope you get an answer, but just wanted to make sure you noticed that the post you were replying to was from 2005, so you may find people have moved on.
Cantata is already integrated with Eclipse CDT (as you can see from the intro video on http://www.qa-systems.com/tools/cantata/)
If you have more specific questions, I would recommending starting a new topic with the specific problem you are trying to solve and what hurdles you have faced that need additional input.
Thanks,
Jonah
|
|
|
Powered by
FUDForum. Page generated in 0.07394 seconds