Browse Source

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

That allows more control from the user's point of view.
mission-4.1.18
Gustavo Jose de Sousa 9 years ago committed by Lucas De Marchi
parent
commit
d1c5691501
  1. 7
      Tools/ardupilotwaf/build_summary.py

7
Tools/ardupilotwaf/build_summary.py

@ -195,6 +195,10 @@ def size_summary(bld, nodes): @@ -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): @@ -221,6 +225,3 @@ def configure(cfg):
'size_bss',
'size_total',
]
def build(bld):
bld.add_post_fun(_build_summary)

Loading…
Cancel
Save