waf: build_summary: let the user register the post build callback

That allows more control from the user's point of view.
This commit is contained in:
Gustavo Jose de Sousa 2016-07-28 14:06:37 -03:00 committed by Lucas De Marchi
parent ff8c772776
commit d1c5691501
1 changed files with 4 additions and 3 deletions

View File

@ -195,6 +195,10 @@ def size_summary(bld, nodes):
return l
@conf
def build_summary_post_fun(bld):
bld.add_post_fun(_build_summary)
@feature('cprogram', 'cxxprogram')
@before_method('process_rule')
def init_summary_data(self):
@ -221,6 +225,3 @@ def configure(cfg):
'size_bss',
'size_total',
]
def build(bld):
bld.add_post_fun(_build_summary)