Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Specific Makefile Builder
Specific Makefile Builder [message #200129] Wed, 22 August 2007 17:41 Go to next message
Eclipse UserFriend
Hi all,

I want to write some specific Makefile builder. So what I have actually
done is to create a plugin which contains a
org.eclipse.core.resources.builders extension which I have namd myBuilder.

Then for the run option I have created a class MyMakeBuilder which
inherits from org.eclipse.cdt.make.core.MakeBuilder :

public class MyMakeBuilder extends MakeBuilder {

public final static String BUILDER_ID = Activator.PLUGIN_ID + ".myBuilder";

public TLMMakeBuilder() {
}

@Override
protected boolean invokeMake(int kind, IMakeBuilderInfo info,
IProgressMonitor monitor) {
System.out.println("This is my builder !!!");
return super.invokeMake(kind, info, monitor);
}
}


When I test my plugin, I create a new Standard make project then I
change the buildCommand from org.eclipse.cdt.make.core.makeBuilder to
xxx.myPlugin.myBuilder it deletes automatically this section.

Can you please explain me how to implement a new Standard make builder
that totally inherits from the one from the CDT and add some
functionality to it.

Thanks
Re: Specific Makefile Builder [message #200742 is a reply to message #200129] Wed, 29 August 2007 10:52 Go to previous message
Eclipse UserFriend
Hi all,

I finally succedded to write my own builder which inherits from
org.eclipse.cdt.make.core.MakeBuilder. But actually I have lost the access
to the preferences of the builder when I go to : Properties -> C/C++ Make
project

Nothing appears in the "Make Builder", "Environment" and "Error Parsers"
tabs. And I have the message "Builder is missing or disabled on project".

Should I have create a Nature for this builder that inherits from the Make
Nature or shoud I set my Builders nature to the CDT make nature.
Previous Topic:GUI using Eclipse under c/c++ code
Next Topic:Eclipse CDT GNUARM DisASM # Format?
Goto Forum:
  


Current Time: Mon May 12 22:15:01 EDT 2025

Powered by FUDForum. Page generated in 0.05369 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top