build: moved main autoproto rule into samba_autoproto.py
[samba.git] / buildtools / wafsamba / samba_autoproto.py
index 4d213feaadc10a5951aa9cb7b1c0f2d76912c177..ab21a1e1a7511d1b6b1fda6ae7609288a83cbed9 100644 (file)
@@ -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
 
 
-