开发者

How to set up an environment in Eclipse CDT by script per project?

I have got several projects in my workspace. I have a script which set a different environment for each project. How can i get Eclipse CDT to use this script to set up the environment inst开发者_JS百科ead of setting everything by hand for each project?

Thanks.


You can translate your script into java, then develop a plug-in to call the API of CDT to apply the environment.


Eclipse CDT Properties for the C/C++ Build has an "Environment" page. You can set variables in this (per project) and either replace or append the native environment.

Right click your project and choose Properties Expand the C/C++ Build item and choose Environment. From there you can modify the properties page.

Unless you have something complicated in your script, this could replace the need for a script altogether. Check out the other settings in the properties page - these might help you to customize each project as you need.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜