wscript
changeset 9168 2ff57d50b827
parent 9143 1573a6ddf0fe
child 9169 f8bff624db3c
equal deleted inserted replaced
9167:495189af3137 9168:2ff57d50b827
   534     # Write a summary of optional features status
   534     # Write a summary of optional features status
   535     print "---- Summary of optional NS-3 features:"
   535     print "---- Summary of optional NS-3 features:"
   536     for (name, caption, was_enabled, reason_not_enabled) in conf.env['NS3_OPTIONAL_FEATURES']:
   536     for (name, caption, was_enabled, reason_not_enabled) in conf.env['NS3_OPTIONAL_FEATURES']:
   537         if was_enabled:
   537         if was_enabled:
   538             status = 'enabled'
   538             status = 'enabled'
       
   539             color = 'GREEN'
   539         else:
   540         else:
   540             status = 'not enabled (%s)' % reason_not_enabled
   541             status = 'not enabled (%s)' % reason_not_enabled
   541         print "%-30s: %s" % (caption, status)
   542             color = 'RED'
       
   543         print "%-30s: %s%s%s" % (caption, Logs.colors_lst[color], status, Logs.colors_lst['NORMAL'])
   542 
   544 
   543 
   545 
   544 class SuidBuild_task(Task.TaskBase):
   546 class SuidBuild_task(Task.TaskBase):
   545     """task that makes a binary Suid
   547     """task that makes a binary Suid
   546     """
   548     """