From: OpenSG <tr...@op...> - 2013-03-12 08:07:30
|
#183: scons: also build test applications of contrib code ----------------------+----------------------------------------------------- Reporter: shaegler | Owner: amz Type: defect | Status: new Priority: minor | Milestone: Close or reassign old tickets Component: Build | Version: 1.8 Keywords: | ----------------------+----------------------------------------------------- Changes (by vossg): * milestone: 2.0 Beta => Close or reassign old tickets Old 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']) > > > }}} New 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']) }}} -- -- Ticket URL: <http://www.opensg.org/ticket/183#comment:3> OpenSG <http://external.lite3d.com/opensg> OpenSG Project |