From adb43713ac9de55fedc61c122206b8484b8fa994 Mon Sep 17 00:00:00 2001 From: Henk Kalkwater Date: Tue, 2 Mar 2021 18:06:45 +0100 Subject: [PATCH] Try installing systemd unit files --- ober/meson.build | 7 +++++++ ober/subprojects/ddbus.wrap | 1 + 2 files changed, 8 insertions(+) diff --git a/ober/meson.build b/ober/meson.build index 2439bfa..f6a5d34 100644 --- a/ober/meson.build +++ b/ober/meson.build @@ -18,6 +18,8 @@ ddbus_dep = dependency('ddbus', version: '3.0.0') msgpack_d_dep = dependency('msgpack-d', version: '>=1.0.0') vibe_core_dep = dependency('vibe-core', version: '>=1.13') +systemd_dep = dependency('systemd') + mvoau_ober_deps = [ddbus_dep, msgpack_d_dep, vibe_core_dep] executable('mvoau', @@ -28,6 +30,11 @@ executable('mvoau', vibe_core_dep], install: true) +if systemd_dep.found() + install_data('mvoau.service', + install_dir: systemd_dep.get_pkgconfig_variable('systemdsystemunitdir')) +endif + dlang = import('dlang') dlang.generate_dub_file(meson.project_name().to_lower(), meson.source_root(), authors: 'Meson Team', diff --git a/ober/subprojects/ddbus.wrap b/ober/subprojects/ddbus.wrap index 32401d2..5aa5782 100644 --- a/ober/subprojects/ddbus.wrap +++ b/ober/subprojects/ddbus.wrap @@ -4,3 +4,4 @@ revision = e4ff08ba9ddcbfde972de86fc9e71c1aeb7b289c [provide] dependency_names = ddbus-3.0.0 +ddbus = ddbus_dep