## -*- python -*-#import Action#import Object#import Params#import Taskif0:DEPRECATION_ERRORS='-Werror::DeprecationWarning'# deprecations become errorselse:DEPRECATION_ERRORS='-Wdefault::DeprecationWarning'# normal python behaviourdefbuild(bld):ifnotbld.env['ENABLE_PYGCCXML']:print"gccxml not available; skipping the C hello demo"returnbindgen=bld.new_task_gen(features='command',source='hellomodulegen.py hello.h',target='hellomodule.c',command='${PYTHON} %s ${SRC[0]} ${SRC[1]} > ${TGT[0]}'%(DEPRECATION_ERRORS,))ifbld.env['CXX']:obj=bld.new_task_gen(features='cc cshlib pyext')obj.source=['hello.c','hellomodule.c']obj.target='hello'obj.install_path=None# do not installobj.includes='.'