diff options
Diffstat (limited to 'buildtools/wafsamba/samba_autoproto.py')
-rw-r--r-- | buildtools/wafsamba/samba_autoproto.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/buildtools/wafsamba/samba_autoproto.py b/buildtools/wafsamba/samba_autoproto.py index 4d213feaad..ab21a1e1a7 100644 --- a/buildtools/wafsamba/samba_autoproto.py +++ b/buildtools/wafsamba/samba_autoproto.py @@ -21,9 +21,14 @@ Build.BuildContext.HEIMDAL_AUTOPROTO_PRIVATE = HEIMDAL_AUTOPROTO_PRIVATE # 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 - |