Hi,

On Tue, 2009-09-15 at 11:35 +0200, Johannes Brunen wrote:
> Hello Gerrit,
> 
> I'm just compiling the head of trunc from scratch. All is working fine so 
> far...
> 
> "Gerrit Vo" <[email protected]> schrieb im 
> Newsbeitrag news:[email protected]...
> >
> > Could you let me know in which case it came out wrong.
> >
> The current version of trunc works just fine out of the box.
> 
> >
> > I finished switching the support libs to imported targets so the windows
> > variants should work correctly for the debug and release version for the
> > cases where the supportlibs from OpenSG are not used.
> >
> I appreciate that...
> 
> One other small configuration problem I have to solve. As I stated several 
> times, I have to compile a special source file and link a special library 
> for memory management purpose to each dynamic link library I use. Currently 
> I perform this step by changing the BuildFunctions.cmake and 
> SetupCompiler.cmake scripts in the following way.
> 

ok, I finally found a little time to look at it, you should be able to
do this the following way:

I added a check for a external prep cmake file (run after
the 3rd part package confs). So if OSG_GLOBAL_PREP is set 
to a cmake file this will be included.

Inside it you can do the setup of OSG_ADD_GLOBAL_SRC (which are code
files added to all libs) and OSG_GLOBAL_LIB (which are libs linked to
everything, libs and executables). There is an indirection for the
elements in OSG_GLOBAL_LIBS, e.g. they have to be cmake variables which 
are set to the real lib.


My test prep looks like the following:
------------------------------------------------------------------------
MESSAGE(STATUS "Global Prep")

SET(OSG_ADD_GLOBAL_SRC 
/home/gerrit/test/addon/codepart.cpp;/home/gerrit/test/addon/codepart_b.cpp)

SET(OSG_GLOBAL_LIB OSG_LIBPART_LIBRARY;OSG_LIBPART_B_LIBRARY)

SET(OSG_LIBPART_LIBRARY /home/gerrit/test/addon/libpart.so)
SET(OSG_LIBPART_B_LIBRARY /home/gerrit/test/addon/libpart_b.so)
------------------------------------------------------------------------

So far I tested it for Linux, the Windows test is next, but one thing
one has to change is to use import targets so the libs for all the
build types are setup correctly. I'll post a sample as soon as I have
it.

kind regards,
  gerrit




------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to