wscript 457 B

12345678910111213141516171819202122
  1. #! /usr/bin/env python
  2. """
  3. the feature 'hidden' is used to display the task output for make-like rules
  4. """
  5. def configure(conf):
  6. pass
  7. def build(bld):
  8. bld.env.FOO =['m', 'ncurses']
  9. bld.env.ST = '-L%s'
  10. t = bld(rule='echo ${ST:FOO}', always=True, shell=1, features='hidden')
  11. from waflib import Utils
  12. from waflib.TaskGen import feature, after
  13. @feature('hidden')
  14. @after('apply_rule')
  15. def hide_it(self):
  16. self.tasks[0].__class__.log_display = Utils.nada