diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-07 10:26:46 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:40 +1000 |
commit | d004964142b0eac88528bb556228a49742725f4e (patch) | |
tree | 7fe4c720ed31650283e61fba747a6dfe85c6392b /buildtools/wafsamba/samba_autoproto.py | |
parent | 6dcf5563eab238f833b5a0afc215995704d3c9f6 (diff) | |
download | samba-d004964142b0eac88528bb556228a49742725f4e.tar.gz samba-d004964142b0eac88528bb556228a49742725f4e.tar.bz2 samba-d004964142b0eac88528bb556228a49742725f4e.zip |
build: moved main autoproto rule into samba_autoproto.py
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 - |