yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03539
[Branch ~yade-dev/yade/trunk] Rev 2062: Some scons changes. Vaclav`s patch
------------------------------------------------------------
revno: 2062
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-03-04 11:42:17 +0100
message:
Some scons changes. Vaclav`s patch
modified:
SConstruct
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'SConstruct'
--- SConstruct 2010-02-28 21:21:28 +0000
+++ SConstruct 2010-03-04 10:42:17 +0000
@@ -146,6 +146,7 @@
EnumVariable('linkStrategy','How to link plugins together',defOptions['linkStrategy'],['per-class','per-pkg[broken]','monolithic','static[broken]']),
('chunkSize','Maximum files to compile in one translation unit when building plugins.',7,None,int),
('version','Yade version (if not specified, guess will be attempted)',None),
+ ('realVersion','Revision (usually bzr revision); guessed automatically unless specified',None),
('CPPPATH', 'Additional paths for the C preprocessor (colon-separated)','/usr/include/vtk-5.2:/usr/include/vtk-5.4:/usr/include/eigen2'),
('LIBPATH','Additional paths for the linker (colon-separated)',None),
('QTDIR','Directories where to look for qt3','/usr/share/qt3:/usr/lib/qt:/usr/lib/qt3:/usr/qt/3:/usr/lib/qt-3.3'),
@@ -204,7 +205,7 @@
###########################################
import yadeSCons
## ALL generated stuff should go here - therefore we must determine it very early!!
-env['realVersion']=yadeSCons.getRealVersion() or 'unknown' # unknown if nothing returned
+if not env.has_key('realVersion') or not env['realVersion']: env['realVersion']=yadeSCons.getRealVersion() or 'unknown' # unknown if nothing returned
if not env.has_key('version'): env['version']=env['realVersion']
env['SUFFIX']='-'+env['version']+env['variant']