headless build with CDT using .cproject configuration

微笑、不失礼 提交于 2019-12-08 09:00:17

问题


I have a eclipse project with .project and .cproject, and I want automate the building process, for it I use

./eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /home/user/workspace/ -build App

but it don't use the .cproject file to build, how I make for the building process use the .cproject configuration?

thanks


回答1:


If your project is a makefile project then simply do what Francois said in the comments.

If you are looking at trying to build a specific configuration, it depends on which CDT Version you have, as if you can do that.

By default the headless builder will build ALL configurations specified in the project. At work we have the original CDT 7.0 version and that one did not support building a specific configuration, but I do see in the notes on CDT 7.0 that it does support building a specific configuration. You would do that by using -build App/Config instead of just -build App.

(Note: at home I have eclipse with CDT 7.0.2 and that does support the headless build of a specific configuration as above, although the usage info still doesn't show support for it, and the upcoming CDT 8.0 does correctly show the usage information).



来源:https://stackoverflow.com/questions/5078857/headless-build-with-cdt-using-cproject-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!