# rule for samba prototype generation
def SAMBA_AUTOPROTO(bld, header, source):
- print "TODO: add samba autoproto rule"
- return
+ bld.SET_BUILD_GROUP('prototypes')
+ bld(
+ source = source,
+ target = header,
+ ext_out='.c',
+ rule = '../script/mkproto.pl --srcdir=.. --builddir=. --public=/dev/null --private=${TGT} ${SRC}'
+ )
+ print "Added AUTOPROTO target %s" % header
Build.BuildContext.SAMBA_AUTOPROTO = SAMBA_AUTOPROTO
-