Commit 97cc2013 authored by Sam Thursfield's avatar Sam Thursfield

meson: Allow disabling individual miners

Also cleans up a little nonsense in the meson rules.
parent a5008573
......@@ -65,9 +65,6 @@ uuid = cc.find_library('uuid')
add_project_arguments('-Wno-pointer-sign', language: 'c')
add_project_arguments('-DTRACKER_COMPILATION', language: 'c')
enable_extract = get_option('extract')
enable_writeback = get_option('writeback')
##################################################################
# Check for libtracker-common, make sure libstemmer exists
##################################################################
......@@ -263,9 +260,6 @@ conf = configuration_data()
conf.set('DISABLE_JOURNAL', get_option('journal') == false)
conf.set('USING_UNZIPPSFILES', get_option('unzip_ps_gz_files') == true)
conf.set('HAVE_TRACKER_EXTRACT', enable_extract)
conf.set('HAVE_TRACKER_WRITEBACK', enable_writeback)
conf.set('HAVE_ENCA', charset_library_name == 'enca')
conf.set('HAVE_EXEMPI', exempi.found())
conf.set('HAVE_GSTREAMER', generic_media_handler_name == 'gstreamer')
......@@ -323,11 +317,11 @@ tracker_c_args = [
'-D_LARGEFILE64_SOURCE',
]
have_tracker_miner_fs = true
have_tracker_miner_apps = true
have_tracker_miner_rss = true
have_tracker_extract = true
have_tracker_writeback = true
have_tracker_extract = get_option('extract')
have_tracker_miner_apps = get_option('miner_apps')
have_tracker_miner_fs = get_option('miner_fs')
have_tracker_miner_rss = get_option('miner_rss')
have_tracker_writeback = get_option('writeback')
configinc = include_directories('./')
srcinc = include_directories('src/')
......
......@@ -8,6 +8,12 @@ option('guarantee_metadata', type: 'boolean', value: true,
description: 'Set nie:title and nie:contentCreated from filename and mtime if no metadata available')
option('journal', type: 'boolean', value: true,
description: 'Enable database journal backup mechanism')
option('miner_apps', type: 'boolean', value: true,
description: 'Enable the Tracker applications miner')
option('miner_fs', type: 'boolean', value: true,
description: 'Enable the Tracker filesystem miner')
option('miner_rss', type: 'boolean', value: true,
description: 'Enable the Tracker RSS miner')
option('writeback', type: 'boolean', value: true,
description: 'Enable Tracker writeback feature')
......
subdir('fs')
subdir('rss')
subdir('apps')
if have_tracker_miner_fs
subdir('fs')
endif
if have_tracker_miner_rss
subdir('rss')
endif
if have_tracker_miner_apps
subdir('apps')
endif
......@@ -2,7 +2,7 @@ subdir('common')
subdir('libtracker-common')
if enable_extract
if have_tracker_extract
subdir('libtracker-extract')
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment