[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Mixed C/C++ sources under 3.0.2 and Environmentvariables
|
Right, I knew that :)
I experimented with overriding the default InputType via the extensions
tab in the plug-in development perspective but I just couldn't get it to
work properly. From what I read in the documentation if an InputType's
sourceContentType is unknown it will use the value of sources which is a
list of source extensions. This didn't seem to be working properly for
me. I ended up adding the following to my plugin.xml which did work.
<extension point="org.eclipse.core.runtime.contentTypes">
<file-association
content-type="org.eclipse.cdt.core.cSource"
file-extensions="C,cpp,cxx,cc"/>
</extension>
Thanks for the help on this!
Matthias
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Treggiari, Leo
Sent: Wednesday, March 08, 2006 2:30 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] Mixed C/C++ sources under 3.0.2 and
Environmentvariables
Hi Matthias,
I believe that you can override the default InputType by specifying it
using the superClass attribute in your InputType.
Regards,
Leo
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Matthias Halfmann
Sent: Wednesday, March 08, 2006 2:20 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] Mixed C/C++ sources under 3.0.2 and
Environmentvariables
Leo,
> Do you now have 2 InputTypes? If so, that is the problem. One
> input-type is considered the primary input. The compiler will be
called
> for each project resource that is of that type. The other input-type
is
> considered a secondary input, and all files of that type will be added
> to every compilation.
I believe I have two InputTypes defines. I'm deriving my tool from
cdt.managedbuild.tool.gnu.c.compiler.cygwin which defines a default
InputType. Then I'm adding a new InputType to also include C++ sources.
Is there a way I can override the default gnu.c InputType with my custom
one?
Thanks for the help,
Matthias
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev