|
Re: LDT features inside CDT project [message #797708 is a reply to message #794082] |
Mon, 13 February 2012 20:36 |
|
Hi Robert, and sorry for the late reply,
I see two ways for you to benefit from LDT features in a C/C++ project:
1. The solution which I think would be the most elegant is to give your CDT project the LDT nature. I have opened a bug to automate this, but in the mean time, you'll have to edit your .project file by hand.
In the <buildSpec> section, you should add
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
And in the <natures> section:
<nature>org.eclipse.koneki.ldt.nature</nature>
From this point, your project will behave not only as a CDT project, but as an LDT project as well. It means you will be able to right click on a folder, and choose "Build Path > Use as Source Folder" on the folders containing your Lua files.
2. The alternative way is to create a new Lua project in your workspace. In this project, create a new virtual folder (see related help topic) linked to the folder containing your Lua sources. Then, right click on the folder, and choose "Build Path > Use as Source Folder".
Hope this helps!
I am looking forward to further comments from you regarding the use of LDT together with CDT, since I believe it is a very common use case and there's certainly room for improvement!
My blog: http://blog.benjamin-cabe.com
|
|
|
Powered by
FUDForum. Page generated in 0.05291 seconds