# 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
-
)
Build.BuildContext.SAMBA_ERRTABLE = SAMBA_ERRTABLE
-
-
-
-################################################################
-# build a C prototype file automatically
-def AUTOPROTO(bld, header, source):
- if header is not None:
- bld.SET_BUILD_GROUP('prototypes')
- bld(
- source = source,
- target = header,
- rule = '../script/mkproto.pl --srcdir=.. --builddir=. --public=/dev/null --private=${TGT} ${SRC}'
- )
-Build.BuildContext.AUTOPROTO = AUTOPROTO
-
-
#################################################################
# define a Samba module.
def SAMBA_MODULE(bld, modname, source,
bld.HEIMDAL_AUTOPROTO('../heimdal/lib/asn1/der-protos.h',
HEIMDAL_HEIM_ASN1_DER_SOURCE,
+ group = 'build_compilers',
options="-q -P comment -o")