Hi Russel,

x10c++ does handle multiple source X10 files, including checking whether 
the file has changed since the last compilation.  It will search for any 
imported X10 classes in 'sourcepath'.  I typically compile to a separate 
target directory, so that my X10 source dirs don't get filled up with 
*.cc and *.h files.  For example:

x10c++ -sourcepath .:${other-src-dir} -d ${target-dir} MyClass.x10

By default this is a dynamic linking process so you will of course need 
the X10 libraries in your library path when running the executable.

We use ant for all our builds.   Feel free to browse the build.xml files 
for our software, HG repo linked to from 
http://cs.anu.edu.au/~Josh.Milthorpe/anuchem.html
There was talk a while back of creating specific x10c/x10c++ tasks for 
ant, but no movement so far. http://jira.codehaus.org/browse/XTENLANG-356

I haven't tried SCons with X10 - sounds like you just volunteered :-)

Cheers,

Josh

Russel Winder wrote:
> I am not sure which tools for compilation of X10 programs people are
> using.  Is anyone using SCons?  Would there be any interest in creating
> a SCons tool for X10?
>
> Compiling X10 via the Java route clearly leads to having many classes
> each in a separate file.  The compilation strategy is clear.
>
> When compiling via the C++ route, there seems to be an indication that
> all the X10 code is in a single file, though I am sure this is not what
> people are actually doing.  I suspect this is a RTFM but can someone
> point me at information on the canonical multifile process for compiling
> X10 via the C++ route.
>
> Thanks.
>
>   


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to