building examples directory in Samba 4

Steve French smfrench at gmail.com
Tue Nov 18 10:43:53 MST 2014


Now that autoconf is gone, I don't see anything in our tree or in the
presentations and documentations on the VFS) about actually building
examples. The following seems to work but I am not sure if that is the
recommended way.  Also wondering how

diff --git a/wscript_build b/wscript_build
index e74841e..cce75e9 100644
--- a/wscript_build
+++ b/wscript_build
@@ -122,6 +122,7 @@ bld.RECURSE('libcli/samsync')
 bld.RECURSE('libcli/registry')
 bld.RECURSE('source4/lib/policy')
 bld.RECURSE('libcli/named_pipe_auth')
+bld.RECURSE('examples/VFS')

 if bld.CONFIG_GET('KRB5_VENDOR') in (None, 'heimdal'):
     if bld.CONFIG_GET("HEIMDAL_KRB5_CONFIG") and
bld.CONFIG_GET("USING_SYSTEM_KRB5"):


Also not obvious how to list the vfs modules which are built by
default. Assuming the module is listed in
source3/modules/wscript_build with its own bld.SAMBA3_MODULE line then
wscript in the root presumably adds them via the various lines
default_shared_modules.extend(TO_LIST(... etc. but it is hard to get a
good summary (other than by looking in bin/default/source3/modules/
which can have debris left over from earlier builds, and has a
confusing numbering scheme, so hard to tell which modules are actually
supposed to be built other than by clean build).

Is this written up anywhere?

-- 
Thanks,

Steve


More information about the samba-technical mailing list