Hi, [CCing vala-list in case anyone is interested] I've reimplemented realize in ~120 lines of python (well, I've cheated a bit, I'm using an existing engine), I think it's easier for prototyping than vala. Right now, it can build the proto-1 of realize. It's not really compatible, I'm not using the src/<path>/vala path nor separate target (the latter is just a technical limitation). You'll need scons [1] (either pass --standard-lib or add ${prefix}/lib/scons to your PYTHONPATH), you'll also need to download the vala builder from [2]. To try it you can symlink src/main/vala to main in proto-1 and copy both the attached file and the vala builder to the root source dir, and run python realize2.py (and run ./vpl to rebuild with proto-1 :-p) What do you think of this? Ideas for improvement (basically : improve the vala builder and use it; this will benefit those using only scons, so it's not a wasted effort) * support --basedir/--directory to separate sources from targets. * add vapi/header/gir etc. * add support for libraries. * try to build valac ;-) Hope this makes sense, I'm tired now, Abderrahim [1] http://scons.org/ [2] http://abraca.xmms.se/repositories/entry/abraca/site_scons/site_tools/vala.py?format=raw
Attachment:
realize2.py
Description: Binary data