You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
waf/playground/hide_output/wscript

23 lines
473 B
Python

#! /usr/bin/env python
"""
the feature 'hidden' is used to display the task output for make-like rules
"""
def configure(conf):
pass
def build(bld):
bld.env.FOO =['m', 'ncurses']
bld.env.ST = '-L%s'
t = bld(rule='echo ${ST:FOO}', always=True, shell=1, features='hidden')
from waflib import Utils
from waflib.TaskGen import feature, after_method
@feature('hidden')
@after_method('process_rule')
def hide_it(self):
self.tasks[0].__class__.log_display = Utils.nada