Revision: 7134 http://playerstage.svn.sourceforge.net/playerstage/?rev=7134&view=rev Author: natepak Date: 2008-11-12 20:46:33 +0000 (Wed, 12 Nov 2008)
Log Message: ----------- Added more functionality to check for package versions Modified Paths: -------------- code/gazebo/trunk/build.py Modified: code/gazebo/trunk/build.py =================================================================== --- code/gazebo/trunk/build.py 2008-11-12 20:39:21 UTC (rev 7133) +++ code/gazebo/trunk/build.py 2008-11-12 20:46:33 UTC (rev 7134) @@ -34,9 +34,21 @@ os.system(sysCmd) +def CheckPkgConfig(context, version): + context.Message( 'Checking for pkg-config... ' ) + ret = context.TryAction('pkg-config --atleast-pkgconfig-version=%s' % version)[0] + context.Result( ret ) + return ret +def CheckPkg(context, name): + context.Message( 'Checking for %s...' % name) + action = 'PKG_CONFIG_PATH=%s pkg-config --exists \'%s\'' % (os.environ['PKG_CONFIG_PATH'], name); + ret = context.TryAction(action)[0] + context.Result(ret) + return ret + def CheckODELib(context): - context.Message('Checking for ODE...') + context.Message('Checking for ODE trimesh support...') oldLibs = context.env['LIBS'] context.env.Replace(LIBS='ode') result = context.TryLink(ode_test_source_file, '.cpp') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit