← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3720: Add a notification to the screen, whether the current build is debugbuild.

 

------------------------------------------------------------
revno: 3720
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2013-09-05 09:52:37 +0200
message:
  Add a notification to the screen, whether the current build is debugbuild.
modified:
  CMakeLists.txt
  core/main/main.py.in


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2013-08-15 12:52:44 +0000
+++ CMakeLists.txt	2013-09-05 07:52:37 +0000
@@ -409,6 +409,7 @@
 MESSAGE(STATUS "Disabled features:${DISABLED_FEATS}")
 IF (DEBUG)
   MESSAGE(STATUS "Debug build")
+  SET (debugbuild " (debug build)")
 ELSE (DEBUG)
   MESSAGE(STATUS "Optimized build")
 ENDIF (DEBUG)

=== modified file 'core/main/main.py.in'
--- core/main/main.py.in	2013-08-26 15:45:31 +0000
+++ core/main/main.py.in	2013-09-05 07:52:37 +0000
@@ -11,7 +11,7 @@
 # get yade path (allow YADE_PREFIX to override)
 prefix,suffix='${runtimePREFIX}' if not os.environ.has_key('YADE_PREFIX') else os.environ['YADE_PREFIX'],'${SUFFIX}'
 # duplicate some items from yade.config here, so that we can increase verbosity when the c++ part is booting
-features,version='${features}'.split(' '),'${realVersion}'
+features,version,debugbuild='${features}'.split(' '),'${realVersion}',' ${debugbuild}'
 
 libPATH='${LIBRARY_OUTPUT_PATH}'
 if (libPATH[1:] == '{LIBRARY_OUTPUT_PATH}'): libPATH='lib'
@@ -62,7 +62,7 @@
 		__import__(lib)
 
 if opts.version:
-	print 'Yade version: %s'%version
+	print 'Yade version: %s%s'%(version,debugbuild)
 	sys.exit(0)
 
 if opts.script:
@@ -115,7 +115,7 @@
 else: os.environ['OMP_NUM_THREADS']='1'
 
 if __name__ == "__main__": # do not print this while importing yade in other python application
-	sys.stderr.write('Welcome to Yade '+version+'\n')
+	sys.stderr.write('Welcome to Yade '+version+debugbuild+'\n')
 
 # initialization and c++ plugins import
 import yade