Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've tried <a href="http://quirkygba.blogspot.com/2009/02/it-has-been-while-since-i-last-tried.html" rel="noreferrer">Waf in Eclipse CDT</a> before now, SCons would be really similar. The solution was to create an empty Makefile project, then simply change "make" to "scons" in the options. On Windows that would probably need the scons.bat file in your path. That is not much better than creating a dummy Makefile that has an <code>all:\n\tscons</code> type pattern in it, but is the least work.</p> <p>The <a href="http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=816" rel="noreferrer">SConsBuilder plugin</a> is not a good idea. It has a whole bunch of hard coded python code in there that it spits out to a SConstruct. It hasn't been updated in ages and a lot of code is probably deprecated in SCons by now. I think a better approach is to do what SCons does for Visual Studio, or what CMake does for Eclipse CDT. That means generating a .cproject file on the fly based on your build configuration.</p> <p>I wrote an <a href="http://gist.github.com/211962" rel="noreferrer">Eclipse project generator for Waf</a> at one point, which walks the build nodes gathering source files and spits out a .project and .cproject file. Similar to how CMake does it, but Waf's default behaviour of creating a variant directory means you don't have to deal with out-of-source build issues. This has since been added as an <a href="http://code.google.com/p/waf/source/browse/waflib/extras/eclipse.py" rel="noreferrer">extra in waf itself</a>. It uses only part of the Waf API so it would be possible to convert it to SCons with some small-ish amount of work. In other words, there's nothing much out there. The .cproject format is not really documented anywhere and is really ugly compared to the Java version.</p> <p>I didn't get on too well with CDT though - it is a long way behind the Java dev tools - and I still use Vim with <code>:make</code>, so it was all a bit academic in the end.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload