summaryrefslogtreecommitdiff
path: root/src/miners/apps/meson.build
blob: 51ddd5203edde71e33655821e2463c7add0d3eab (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
41
42
43
44
45
sources = [
    'tracker-main.c',
    'tracker-miner-applications.c',
]

executable('tracker-miner-apps', sources,
    dependencies: [tracker_common_dep, tracker_miner_dep, tracker_sparql_dep],
    c_args: tracker_c_args,
    install: true,
    install_dir: get_option('libexecdir'),
    install_rpath: tracker_internal_libs_dir,
)

dbus_service_file_untranslated = configure_file(
    input: 'org.freedesktop.Tracker1.Miner.Applications.service.in.in',
    output: 'org.freedesktop.Tracker1.Miner.Applications.service.in',
    configuration: conf)

dbus_service_file = custom_target('tracker-miner-apps-dbus-service-file',
    input: dbus_service_file_untranslated,
    output: 'org.freedesktop.Tracker1.Miner.Applications.service',
    command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 'po'), '@INPUT@', '@OUTPUT@'],
    install: true,
    install_dir: dbus_services_dir)

desktop_file_untranslated = configure_file(
    input: 'tracker-miner-apps.desktop.in.in',
    output: 'tracker-miner-apps.desktop.in',
    configuration: conf)

desktop_file = custom_target('tracker-miner-apps-desktop-file',
    input: desktop_file_untranslated,
    output: 'tracker-miner-apps.desktop',
    command: ['intltool-merge', '--quiet', '--desktop-style', '--utf8', join_paths(meson.source_root(), 'po'), '@INPUT@', '@OUTPUT@'],
    install: true,
    install_dir: join_paths(get_option('sysconfdir'), 'xdg/autostart'))

if install_systemd_user_services
  configure_file(
      input: 'tracker-miner-apps.service.in',
      output: 'tracker-miner-apps.service',
      configuration: conf,
      install: true,
      install_dir: systemd_user_services_dir)
endif