| 1 |
subdir('cmf') |
| 2 |
subdir('figures') |
| 3 |
subdir('illuminant') |
| 4 |
subdir('profiles') |
| 5 |
subdir('ref') |
| 6 |
subdir('tests') |
| 7 |
subdir('ti1') |
| 8 |
|
| 9 |
if get_option('bash_completion') |
| 10 |
install_data('colormgr', |
| 11 |
install_dir: bash_completion.get_pkgconfig_variable('completionsdir') |
| 12 |
) |
| 13 |
endif |
| 14 |
|
| 15 |
con2 = configuration_data() |
| 16 |
con2.set('localstatedir', localstatedir) |
| 17 |
con2.set('servicedir', libexecdir) |
| 18 |
con2.set('daemon_user', get_option('daemon_user')) |
| 19 |
|
| 20 |
# replace @servicedir@, @daemon_user@ and @localstatedir@ |
| 21 |
if get_option('systemd') |
| 22 |
configure_file( |
| 23 |
input : 'colord.service.in', |
| 24 |
output : 'colord.service', |
| 25 |
configuration : con2, |
| 26 |
install: true, |
| 27 |
install_dir: systemdsystemunitdir, |
| 28 |
) |
| 29 |
|
| 30 |
configure_file( |
| 31 |
input : 'colord.conf.in', |
| 32 |
output : 'colord.conf', |
| 33 |
configuration : con2, |
| 34 |
install: true, |
| 35 |
install_dir: tmpfilesdir, |
| 36 |
) |
| 37 |
|
| 38 |
if get_option('daemon_user') != 'root' |
| 39 |
configure_file( |
| 40 |
input : 'colord.sysusers.conf.in', |
| 41 |
output : 'colord-sysusers.conf', |
| 42 |
configuration : con2, |
| 43 |
install: true, |
| 44 |
install_dir: sysusersdir, |
| 45 |
) |
| 46 |
endif |
| 47 |
endif |
| 48 |
|
| 49 |
# replace @servicedir@ and @daemon_user@ |
| 50 |
configure_file( |
| 51 |
input : 'org.freedesktop.ColorManager.service.in', |
| 52 |
output : 'org.freedesktop.ColorManager.service', |
| 53 |
configuration : con2, |
| 54 |
install: true, |
| 55 |
install_dir: join_paths(datadir, 'dbus-1', 'system-services') , |
| 56 |
) |
| 57 |
|
| 58 |
# replace @daemon_user@ |
| 59 |
configure_file( |
| 60 |
input : 'org.freedesktop.ColorManager.conf.in', |
| 61 |
output : 'org.freedesktop.ColorManager.conf', |
| 62 |
configuration : con2, |
| 63 |
install: true, |
| 64 |
install_dir: join_paths(datadir, 'dbus-1', 'system.d') , |
| 65 |
) |