Table of Contents:
SCons comes with many tools as standard, C, C++, Fortran, D, LaTeX, etc. However there are many languages for which there is no support "out of the box". Chapel is one of those languages. This tool is therefore an "add in" to provide SCons support for building applications written in Chapel.
You will need to clone this Mercurial repository and then possibly additionally provide some links. SCons has a number of ways of adding new tools depending on whether you want them available only for a single project, for all the projects of an individual user, or for all projects on a given system. The location to which the clone should be made depends on which of these situations you want to support.
Whichever location you choose the command will be:
$ hg clone http://bitbucket.org/russel/scons_chapel chapel
the name of the target directory will become the name of the tool for your situation. In this case "chapel" is the target directory name and hence "chapel" will be the name of the tool.
Currently there is a single builder provided by the tool "ChapelProgram". Chapel emphasizes using a single compilation action and providing all code to be compiled as source, so there is no need for a SCons infrastructure to handle compilation of individual modules.
Here is an example of usage:
e = Environment(tools=['chapel']) e.ChapelProgram('helloWorld.chpl')
e = Environment(tools=['chapel']) e.ChapelProgram('helloWorld', ['helloWorld.chpl'])