Hi Allen,
Dirk Reiners wrote:
> Allen Bierbaum wrote:
>> I would like that much better. Then the OpenSG run-time version
>> information could be something like:
>>
>> <major>.<minor>.<patch> revision: <svn rev>
>>
>> That seems much more useful to me then the cvsids.
> I forgot one thing, though: I would like to have that info not only in
> Base but in all the libs. Not sure how to elegantly do that, as the libs
> don't have a central point that definitely exists, like a per-lib
> Singleton or so.
>
> I guess we'll have to do that manually, which I don't like very much,
> but on a per-lib basis I guess that's acceptable.
I added it in the form of a OSG*Def.cpp file that is related to the
OSG*Def.h file. All it does is register a StaticInit function that gives
osgInit a versioning string to output on init. Set the log level to
notice and you will see it. The revisions are updated from scons when
enable_revision is True (this needs pysvn installed, as it has to access
the svn revision of all files in the lib).
One thing that bit me a little bit was that the OSG*Def.h files are not
always in directories that are actually used in the respective lib (some
are in /Base dirs, which go into System). I put them in places that are
linked into the lib, but they probably need to move a little.
Now that this is done we can remove the cvsids from the files. I would
leave that for the time when we have to touch every file anyway (major
interface change like the pointers, and changing to pch or something
like that).
Yours
Dirk
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core