From d004964142b0eac88528bb556228a49742725f4e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Mar 2010 10:26:46 +1100 Subject: build: moved main autoproto rule into samba_autoproto.py --- buildtools/wafsamba/samba_autoproto.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'buildtools/wafsamba/samba_autoproto.py') 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 - -- cgit