How do we allow a module to be built via --enable-some-module?

Richard Sharpe realrichardsharpe at gmail.com
Sat Feb 28 23:11:11 MST 2015


Hi folks,

so if we have the following in source3/wscript:

    opt.add_option('--enable-vxfs',
                  help=("enable support for VxFS (default=no)"),
                  action="store_true", dest='enable_vxfs', default=False)

how does that control the stuff in source3/modules/wscript_build:

  bld.SAMBA3_MODULE('vfs_vxfs',
                   subsystem='vfs',
                   source='vfs_vxfs.c',
                   init_function='',
                   internal_module=bld.SAMBA3_IS_STATIC_MODULE('vfs_vxfs'),
                   enabled=bld.SAMBA3_IS_ENABLED_MODULE('vfs_vxfs'))

Does the enable_vxfs relate to the SAMBA3_IS_ENABLED_MODULE above?

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list