summaryrefslogtreecommitdiff
path: root/src/libtracker-fts/meson.build
blob: cbfe553a14a10d90ba3f06764e981ae5253ebbef (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
27
28
29
30
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
)

custom_target('libtracker-fts-settings-schema',
    input: 'org.freedesktop.Tracker.FTS.gschema.xml.in',
    output: 'org.freedesktop.Tracker.FTS.gschema.xml',
    command: ['intltool-merge', '--quiet', '--xml-style', '--utf8', po_subdir, '@INPUT@', '@OUTPUT@'],
    install: true,
    install_dir: gsettings_schema_dir)