On Fri, 2010-11-05 at 10:49 +1100, Josh Milthorpe wrote:
> 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.

OK so the C++ toolchain is still using all the Java-inspired compilation
approach.  That works for me.

I have doubts about which part of the toolchain should be responsible
for dependency and updatedness checking, but there has always been this
tension in the Java community. 

Out of tree builds are always good :-)

> 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 hadn't thought Ant an option in this arena, that Make or Autotools
would have been used, but then X10 does have Java rather than C++
antecedents, so in hindsight I shouldn't have been.  I would have
thought Maven or perhaps Gradle and Gant would have made things easier
than Ant.  Though of course now that Ant is using a fork of Gant as its
Groovy front end, things are changing.  And there is Polyglot Maven as
well.

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

When it comes to JVM-based things I am solidly in the Gradle and Maven
camps for build.  When it comes to C, C++, LaTeX I am very much in the
Waf, SCons and if necessary CMake camps for build.  The interesting
question arises for projects that use Java and C++.

I have started a SCons tool for X10, cf.
http://bitbucket.org/russel/scons_x10/wiki/Home (*) just as I have
started a Chapel tool.  I am also thinking of creating Waf tools as
well.  Perhaps there should be Gradle tools as well?

(*) This is really just a first baby step, but it provides a basis for
development.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: rus...@russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder



------------------------------------------------------------------------------
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