Hi Torben,
I'm not the author of genwrapper, just the maintainer of the OSG side,
and as yet I haven't tried using genwrapper outside the OSG, but it
should be possible to get it to build wrappers for your own C++
classes.
As inspiration I would suggest having a look at how
OpenSceneGraph/CMakeLists.txt invokes genwrapper - it's done as two
passes, one to generate the doxygen generated xml files for your
classes, then a second pass to parse this into wrappers. The script
looks like:
#
# Provide target for generating wrappers
#
SET(GENWRAPPER genwrapper)
ADD_CUSTOM_TARGET(wrappers
COMMAND ${GENWRAPPER} -c
${OpenSceneGraph_SOURCE_DIR}/src/osgWrappers/genwrapper.conf -t
${OpenSceneGraph_SOURCE_DIR}/src/osgWrappers/Doxyfile.template -d
${OpenSceneGraph_SOURCE_DIR} | doxygen -
COMMAND ${GENWRAPPER} -c
${OpenSceneGraph_SOURCE_DIR}/src/osgWrappers/genwrapper.conf -l
${OpenSceneGraph_SOURCE_DIR}
)
Note the two files OpenSceneGraph/src/osgWrappers/genwrapper.conf and
OpenSceneGarph/src/osgWrappers/Doxyfile.template that guide what
genwrapper should do when building the wrappers. The
Doxyfile.template is the part that will point to the C++ headers to
parse.
Robert.
On Thu, Sep 3, 2009 at 5:42 PM, Torben
Dannhauer<[email protected]> wrote:
> Hi,
>
> I'm building an osg based visual system for simulators ( e.g. flight
> simulators).
>
> I want to use the osgLua Nodekit for scripting support and discovered that it
> is build on osgIntrospection.
>
> Now I'd like to know how to enable osgIntrospection for my own classes.
> I have read that modification of my osg classes are not requiered, because
> the osgIntrospection framework is able to do it automaticaly via gen_wrapper.
>
> Unfortunalety i've only found documantation for an old osg version here:
> http://www.openscenegraph.org/projects/osg/wiki/GenWrapper .
>
>
> What have I to do to make my osg (2.8.2) classes osgIntrospection ready?
>
> Thank you very much!
>
> Cheers,
> Torben
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=17022#17022
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org