Ber
Ber

Reputation: 41853

how to add a tool to eclipse-cdt to automatically generate a header file during make

I have a tool that converts an data file into a C header file for inclusion into my project. Now I would like to have this tool run automatically during make whenever the data file changes.

Where can I tell Eclipse CDT which tool to run and what data file the header depends on?

Upvotes: 2

Views: 1282

Answers (2)

VonC
VonC

Reputation: 1326782

The article "Extending the Eclipse CDT Managed Build System" can give a concrete example of the managed build system (MBS) of CDT.

The MBS can be extended by modifying/adding a "tool" to the tool-chain (An ordered set of tools used to transform the project resources into the final output (build artifacts) of the project)

http://help.eclipse.org/indigo/topic/org.eclipse.cdt.doc.isv/guide/cdt_build_system/whats_new/4.0/whats_2.gif

You should be able to add your tool, and set it up to be active for each file modification.

Upvotes: 2

Aaron Digulla
Aaron Digulla

Reputation: 328724

Open the properties of your project. There is an entry "Builders" where you can add other executables to the build.

Upvotes: 0

Related Questions