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.
23 lines
457 B
Python
23 lines
457 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
|
|
@feature('hidden')
|
|
@after('apply_rule')
|
|
def hide_it(self):
|
|
self.tasks[0].__class__.log_display = Utils.nada
|
|
|