summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: 4c6b5c902c478f80795f1b228e56590d8bd4606b (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
31
32
33
34
35
36
37
38
39
40
tracker_gsettings_schemas = files([
  'org.freedesktop.Tracker.DB.gschema.xml',
  'org.freedesktop.Tracker.FTS.gschema.xml',
  'org.freedesktop.Tracker.gschema.xml',
  'org.freedesktop.Tracker.Store.gschema.xml'
])

foreach schema : tracker_gsettings_schemas
  schemas = configure_file(
    input: schema,
    output: '@PLAINNAME@',
    copy: true,
    install: true,
    install_dir: gsettings_schema_dir)
endforeach

tracker_store_settings_enums = custom_target('tracker-store-settings-enums',
    input: tracker_common_enums_header,
    output: 'org.freedesktop.Tracker.enums.xml',
    command: [glib_mkenums,
              '--comments', '<!-- @comment@ -->',
              '--fhead', '<schemalist>',
              '--vhead', '<@type@ id="org.freedesktop.Tracker.@EnumName@">',
              '--vprod', '    <value nick="@valuenick@" value="@valuenum@"/>',
              '--vtail', '  </@type@>',
              '--ftail', '</schemalist>', '@INPUT@'],
    capture: true,
    install: true,
    install_dir: gsettings_schema_dir)

# Compile schemas locally so that the functional-tests can use them without
# them being installed into /usr.
#
custom_target('compile-schemas',
  output: 'gschemas.compiled',
  command: [find_program('glib-compile-schemas'), meson.current_build_dir()],
  build_by_default: true,
  depends: tracker_store_settings_enums)

tracker_uninstalled_gsettings_schema_dir = meson.current_build_dir()