diff options
author | Ralph Boehme <slow@samba.org> | 2019-05-06 15:03:02 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-08 20:24:31 +0000 |
commit | 1b897df4f7489c6ac7663ca4830dc4c129dd2457 (patch) | |
tree | 6e1dbb49f1803415cd2a5a4784d3ad12fb9e8cd8 /source3/wscript | |
parent | 66b8d86d71551ab8c615428211294ca110608645 (diff) | |
download | samba-1b897df4f7489c6ac7663ca4830dc4c129dd2457.tar.gz |
s3:mdssvc: new option "spotlight backend"
Currently there's only the tracker backend, but subsequent commits will add
other backends.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/source3/wscript b/source3/wscript index d6333f03386..81480de3900 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1677,18 +1677,26 @@ main() { conf.env.with_spotlight = False if Options.options.with_spotlight: - if not conf.env['BISON']: - conf.fatal("Spotlight support requested but bison missing") - if not conf.env['FLEX']: - conf.fatal("Spotlight support requested but flex missing") - - if not conf.CONFIG_SET('HAVE_TRACKER'): - conf.fatal('Missing Gnome Tracker development files') - - if not conf.CONFIG_SET('HAVE_GLIB'): - conf.fatal('Missing glib-2.0 development files') - - Logs.info("building with Spotlight support") + backends = [] + if conf.CONFIG_SET('HAVE_TRACKER') and conf.CONFIG_SET('HAVE_GLIB'): + conf.env.spotlight_backend_tracker = True + backends.append('tracker') + conf.DEFINE('HAVE_SPOTLIGHT_BACKEND_TRACKER', '1') + + if conf.env.spotlight_backend_tracker: + if not conf.env['BISON']: + conf.fatal("Spotlight support requested but bison missing") + if not conf.env['FLEX']: + conf.fatal("Spotlight support requested but flex missing") + + if not conf.env.with_spotlight: + if not conf.CONFIG_SET('HAVE_TRACKER'): + Logs.warn('Missing libtracker-sparql development files for Spotlight backend "tracker"') + if not conf.CONFIG_SET('HAVE_GLIB'): + Logs.warn('Missing glib-2.0 development files for Spotlight backend "tracker"') + conf.fatal("Spotlight support requested, but dependencies missing") + + Logs.info("Building with Spotlight support, available backends: %s" % ', '.join(backends)) default_static_modules.extend(TO_LIST('rpc_mdssvc_module')) conf.DEFINE('WITH_SPOTLIGHT', '1') conf.env.with_spotlight = True |