Opened 10 years ago

Last modified 10 years ago

#183 new defect

scons: also build test applications of contrib code

Reported by: shaegler Owned by: amz
Priority: minor Milestone: 1.X
Component: Build Version: 1.8
Keywords: Cc:

Description

if the scons 'tests' flag was set to 1, the test applications in the Contrib subfolders were not built. i added this snippet to the SConscript in the Contrib folder to remedy that.

shaegler@icarium ~/src/opensg-1.x-cvs-scons/Source/Contrib $ cvs diff SConscript

Index: SConscript

===================================================================

RCS file: /cvsroot/opensg/OpenSG/Source/Contrib/SConscript,v

retrieving revision 1.10

diff -r1.10 SConscript

90a91,99

> 

> if _po.getOption('tests'):

>     # create test programs

>     for testsource in tests:

>         target = testsource.name[:-4] # get leafname and remove .cpp

>         BuildProgram(tc, target, [testsource], tools=[],

>                      updates=[custom, OpenSGLibrary(['OSGWindowGLUT', 'OSGSystem', 'OSGBase', 'OSGContrib'])],

>                      CPPPATH=['.', env['PREFIX'].Dir('include'), env['PREFIX'].Dir('include/OpenSG')],

>                      CPPDEFINES = ['OSG_BUILD_DLL', 'OSG_WITH_GLUT'])



Change History (2)

comment:1 Changed 10 years ago by shaegler

reminder

we need to modify this a little bit... the test applications are now put into ./installed/lib/{opt,dbg} instead of ./installed/ContribTest (or smth like this)

comment:2 Changed 10 years ago by dirk

  • Owner changed from unassigned to amz
Note: See TracTickets for help on using tickets.