summaryrefslogtreecommitdiff
path: root/src/libtracker-fts/meson.build
blob: 1392699f88e37d11c0cad53cf8687247cced2cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if sqlite3_has_builtin_fts5
    libtracker_fts_fts5 = []
else
    libtracker_fts_fts5 = files('fts5.c')
endif

libtracker_fts_dependencies = [sqlite]

libtracker_fts = static_library('tracker-fts',
    'tracker-fts.c',
    'tracker-fts-config.c',
    'tracker-fts-tokenizer.c',
    libtracker_fts_fts5,
    dependencies: [tracker_common_dep, tracker_sparql_intermediate_dep],
    c_args: tracker_c_args
)

tracker_fts_dep = declare_dependency(
    # We need link_whole instead of link_with here so that sqlite3_fts5_init()
    # doesn't get discarded.
    link_whole: libtracker_fts,
    dependencies: libtracker_fts_dependencies
)

install_data('org.freedesktop.Tracker.FTS.gschema.xml',
    install_dir: gsettings_schema_dir)