waf: add shortcut function for examples build

The function example() calls program() passing blddestdir as 'examples'.
This commit is contained in:
Gustavo Jose de Sousa 2016-01-08 18:47:35 -02:00 committed by Lucas De Marchi
parent e549d0a3eb
commit c933b94f4d
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ def program(bld, blddestdir='bin', **kw):
**kw
)
def example(bld, **kw):
kw['blddestdir'] = 'examples'
program(bld, **kw)
# NOTE: Code in libraries/ is compiled multiple times. So ensure each
# compilation is independent by providing different index for each.
# The need for this should disappear when libraries change to be