Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] adding tools to *existing* toolchains?

> Why can't I contribute tools, macro resolvers etc to EXISTING toolchains?
> Would be much better than "subclassing" each and every existing toolchain!
> 
> In the Eclipse platform, I don't have to subclass from Perspective, View etc
> definitions in plugin.xml to be able to contribute things (actions etc) to
> them!
> 
> See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=212127

Perhaps you can take another approach to this matter. When you want to
add tools generating C code you can do that outside of CDT, i.e. you
can write a plugin that uses its own nature, builder, property pages
etc. E.g. when you want to add yacc support, you can add a builder
that reacts on resources with .y extension and generates .c and .h
files from it. Once these resources are added to the project, CDT should
automagically take the appropriate actions to deal with them.

Regards,
  Wieant


Back to the top