Try installing systemd unit files

This commit is contained in:
Chris Josten 2021-03-02 18:06:45 +01:00
parent 8fec607e4f
commit adb43713ac
2 changed files with 8 additions and 0 deletions

View file

@ -18,6 +18,8 @@ ddbus_dep = dependency('ddbus', version: '3.0.0')
msgpack_d_dep = dependency('msgpack-d', version: '>=1.0.0') msgpack_d_dep = dependency('msgpack-d', version: '>=1.0.0')
vibe_core_dep = dependency('vibe-core', version: '>=1.13') vibe_core_dep = dependency('vibe-core', version: '>=1.13')
systemd_dep = dependency('systemd')
mvoau_ober_deps = [ddbus_dep, msgpack_d_dep, vibe_core_dep] mvoau_ober_deps = [ddbus_dep, msgpack_d_dep, vibe_core_dep]
executable('mvoau', executable('mvoau',
@ -28,6 +30,11 @@ executable('mvoau',
vibe_core_dep], vibe_core_dep],
install: true) install: true)
if systemd_dep.found()
install_data('mvoau.service',
install_dir: systemd_dep.get_pkgconfig_variable('systemdsystemunitdir'))
endif
dlang = import('dlang') dlang = import('dlang')
dlang.generate_dub_file(meson.project_name().to_lower(), meson.source_root(), dlang.generate_dub_file(meson.project_name().to_lower(), meson.source_root(),
authors: 'Meson Team', authors: 'Meson Team',

View file

@ -4,3 +4,4 @@ revision = e4ff08ba9ddcbfde972de86fc9e71c1aeb7b289c
[provide] [provide]
dependency_names = ddbus-3.0.0 dependency_names = ddbus-3.0.0
ddbus = ddbus_dep