summaryrefslogtreecommitdiff
path: root/data/meson.build
blob: c27bfcdb7a3f5fc31613e00171bd77edbc4da1e6 (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
46
47
48
49
50
51
52
subdir('cmf')
subdir('figures')
subdir('illuminant')
subdir('profiles')
subdir('ref')
subdir('tests')
subdir('ti1')

if get_option('enable-systemd')
  install_data('colord.conf',
    install_dir: systemd.get_pkgconfig_variable('tmpfilesdir')
  )
endif

if get_option('enable-bash-completion')
  install_data('colormgr',
    install_dir: bash_completion.get_pkgconfig_variable('completionsdir')
  )
endif

con2 = configuration_data()
con2.set('servicedir', libexecdir)
con2.set('daemon_user', get_option('with-daemon-user'))

# replace @servicedir@ and @daemon_user@
if get_option('enable-systemd')
  configure_file(
    input : 'colord.service.in',
    output : 'colord.service',
    configuration : con2,
    install: true,
    install_dir: systemd.get_pkgconfig_variable('systemdsystemunitdir'),
  )
endif

# replace @servicedir@ and @daemon_user@
configure_file(
  input : 'org.freedesktop.ColorManager.service.in',
  output : 'org.freedesktop.ColorManager.service',
  configuration : con2,
  install: true,
  install_dir: join_paths(datadir, 'dbus-1', 'system-services') ,
)

# replace @daemon_user@
configure_file(
  input : 'org.freedesktop.ColorManager.conf.in',
  output : 'org.freedesktop.ColorManager.conf',
  configuration : con2,
  install: true,
  install_dir: join_paths(datadir, 'dbus-1', 'system.d') ,
)