s3-sessionid: move sessionid init call to the only function where it is needed.
[samba.git] / wscript_build
index 318020c1ea81358c27e3ac74972e82bf270b4f61..d955f90dc2ce9b97675d985be11d3debb8d64178 100644 (file)
@@ -17,6 +17,16 @@ bld.env.suffix3 = "3"
 bld.SETUP_BUILD_GROUPS()
 bld.AUTOCLEANUP_STALE_FILES()
 
+# enable building of public headers in the build tree
+bld.env.build_public_headers = 'include/public'
+
+# these are includes which appear in public headers, but with #ifdef conditional
+# compilation, so they are safe
+bld.env.public_headers_skip = ['param/param_proto.h', 'lib/ldb_compat.h']
+
+# force headers to use SAMBA4 rules
+bld.env.public_headers_replace = { '#if _SAMBA_BUILD_ == 4' : '#if 1 /* _SAMBA_BUILD_ == 4 */' }
+
 samba_version.load_version(bld.env)
 bld.SAMBA_MKVERSION('version.h')
 
@@ -110,6 +120,8 @@ bld.RECURSE('libds/common')
 if bld.env.enable_s3build:
     bld.RECURSE('source3')
 
+bld.RECURSE('testsuite/headers')
+
 # install some extra empty directories
 bld.INSTALL_DIRS("", "${LOCKDIR} ${SYSCONFDIR} ${LOCKDIR} ${PIDDIR} ${LOCALSTATEDIR}/lib ${PRIVATEDIR}/smbd.tmp/messaging")