Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
make scons less verbose
07-05-2009, 07:46 PM,
#2
 
sorry, without the 'quote' of course...

Code:
diff --git a/SConstruct b/SConstruct
index 5177c0b..2a8b78f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -26,6 +26,7 @@ opts.Add(BoolOption('use_distcc', 'Set this to 1 to enable distributed compilaci
opts.Add(BoolOption('force_feedback', 'Enable force-feedback support', 0))
opts.Add(BoolOption('profiling', 'Turn on profiling output', 0))
opts.Add(BoolOption('efficiency', 'Turn on compile-time efficiency warnings', 0))
+opts.Add(BoolOption('VERBOSE', 'Show verbose compiling output', 0))


#--------------------------#
@@ -143,6 +144,12 @@ else:
         options = opts)
     check_headers = ['asio.hpp', 'boost/bind.hpp', 'GL/gl.h', 'GL/glu.h', 'SDL/SDL.h', 'SDL/SDL_image.h', 'SDL/SDL_rotozoom.h', 'vorbis/vorbisfile.h', 'GL/gle

+if ARGUMENTS.get('VERBOSE') != "1":
+       env['ARCOMSTR'] = "\tARCH $TARGET"
+       env['CCCOMSTR'] = "\tCC $TARGET"
+       env['CXXCOMSTR'] = "\tCPP $TARGET"
+       env['LINKCOMSTR'] = "\tLINK $TARGET"
+       env['RANLIBCOMSTR'] = "\tRANLIB $TARGET"

#-------------------------------#
# General configurarion options #
Reply


Messages In This Thread
make scons less verbose - by Tom - 07-05-2009, 07:45 PM
[No subject] - by Tom - 07-05-2009, 07:46 PM
[No subject] - by joevenzon_phpbb2_import3 - 07-08-2009, 11:09 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)