s3:utils/net remove aclmapset command
[Samba/gebeck_regimport.git] / buildtools / wafsamba / samba_autoproto.py
blob2d8ea546ab2a594ddb69a8cf179dbb04c27321b6
1 # waf build tool for building automatic prototypes from C source
3 import Build
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')
12 t = bld(
13 name = name,
14 source = source,
15 target = header,
16 on_results=True,
17 ext_out='.c',
18 before ='cc',
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