1 # waf build tool for building automatic prototypes from C source
4 from samba_utils import *
6 def SAMBA_AUTOPROTO(bld, header, source):
7 '''rule for samba prototype generation'''
8 bld.SET_BUILD_GROUP('prototypes')
9 relpath = os_path_relpath(bld.curdir, bld.srcnode.abspath())
10 name = os.path.join(relpath, header)
11 SET_TARGET_TYPE(bld, name, 'PROTOTYPE')
19 rule = '${PERL} "${SCRIPT}/mkproto.pl" --srcdir=.. --builddir=. --public=/dev/null --private="${TGT}" ${SRC}'
21 t.env.SCRIPT = os.path.join(bld.srcnode.abspath(), 'source4/script')
22 Build.BuildContext.SAMBA_AUTOPROTO = SAMBA_AUTOPROTO