Ticket #183 (new defect)

Opened 1 year ago

Last modified 1 year ago

scons: also build test applications of contrib code

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

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

04/20/07 03:26:53 changed 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)

04/20/07 09:02:40 changed by dirk

  • owner changed from unassigned to amz.