Thanks,
Eric
I'm trying to get the source right now, but I get the following error:
blister:~/Documents/CMakeLua whsmith$ hg clone
http://hg.assembla.com/CMakeLua YourClone
Traceback (most recent call last):
File "/usr/local/bin/hg", line 11, in <module>
from mercurial import demandimport; demandimport.enable()
ImportError: No module named mercurial
I'm on OSX. Google hasn't been much help. Anyone have a clue?
thanks,
wes
The repo has a good number of files in it. Could I get a few pointers
to the key files where the bindings take place? Also perhaps a
description of the general repo layout? This would really help me get
into it.
best,
wes
Hmmm, I'm on OS X (Leopard) right now, but I can't reproduce your
problem. I used one of the Mercurial OS X installers to install.
Can you check your version? I think mine is one of the 0.95+patches releases.
$ hg --version
Mercurial Distributed SCM (version bc475d1f74ca)
Copyright (C) 2005-2007 Matt Mackall <m...@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I know for sure that:
cmGetPropertyCommand.cxx
cmMakefile.cxx have Lua stuff because I just resolved some merge conflicts.
I think cmCommand.cxx was very significant, probably where most of the
binding takes place. And cmake.cxx has a bunch of stuff too.
You can do a grep for lua in Source/ and probably find everything.
The middle-layer API-interface I introduced is called
LuaPublicAPIHelper.lua
and in the Modules/ directory.
And there is a simple test project in
Tests/LuaTest/
which has a CMakeLists.lua instead of CMakeLists.txt.
Thanks,
Eric
One more thought, maybe make sure your ~/.hgrc file is clean.
I also Googled for your error. It may be related to using 0.9.4. I
recommend upgrading if you're Mercurial version is not 0.9.5.
wes
class Thing {};
class Thing_udata : public Thing {};
class Thing_udata {
Thing *m_thing;
//or Thing &m_thing;
//or const Thing& m_thing; it depends
};
I also use a userdata template to do alot of the work of the bindings.
I plan on making it a policy-based template, but for now it's all or
nothing. So a true binding would be
class Thing_udata : public Thing, public udata::Udata<Thing_udata>
{};
Anyway, I haven't gone very far in the source and I know very little
about CMake, so this may not apply here.
wes
Mercurial is the best tool for the job. CVS and SVN will never support
what we are doing.
You should see the infamous Linus Google Talk on Git:
http://www.youtube.com/watch?v=4XpnKHJAok8
Also good reference:
Bryan O'Sullivan on Mercurial:
http://www.youtube.com/watch?v=JExtkqzEoHY
Randal Schwartz also on Git:
http://www.youtube.com/watch?v=8dhZ9BXQgc4
On 2/3/08, Wesley Smith <wesle...@gmail.com> wrote:
>
Hi Eric, I'm Filipe Sousa and I have been using cmake since 2003. Lua is
a fantastic language (but not my favorite) for things like this. Lets
hope this can make cmake better.
It's time to learn lua again, my last contact with lua was with version
4.x (i think)
--
Filipe Sousa