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

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

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

+2


source to share


2 answers


In the article " " Expanding controlled Eclipse CDT build system "can give a specific example of a managed assembly system (MBS) CDT.

MBS can be extended by modifying / adding a "tool" to the tool chain (An ordered set of tools used to transform project resources into the final output (assembly of 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 can add your tool and configure it to activate each file modification.

+2


source


Open your project properties. There is a Builders entry where you can add other executables to the assembly.



0


source







All Articles