Use CDT to Generate Makefile from Within Ant build.xml [message #892779] |
Fri, 29 June 2012 15:41 |
Reece Johnston Messages: 2 Registered: June 2012 |
Junior Member |
|
|
I was wondering if there is a way to call the CDT builder and just generate the makefile and its .mk files. I'm aware I can use something like "eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data ${workspace_loc} -build ${project_loc}/Debug" from a command line to kick off the entire build process for a single project; however, I need to run from within the IDE, and I just want the makefile, objects.mk, sources.mk, and subdir.mk files. Is there a command to do this?
Furthermore, our projects are in a constant state of flux, so it is impractical to have a hardstate makefile for each one (so don't suggest that). Ultimately, the CDT builder does a good job generating the makefile (and its supporting files), but it takes an unacceptably long time to build (~3 min compared to ~12 s when just using make in Ant).
Also, if anyone could point me in a direction such that I could include this as a(n) exec/command in an Ant build.xml, it would be appreciated.
Thanks,
Reece
::System Info::
Eclipse: Indigo SR2 (2.7.*)
CDT: Eclipse IDE for C/C++ Linux Developers 1.4.2.20120213-0813
OS: Linux CentOS 5.4
Ant: Apache Ant 1.8
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03828 seconds