Update meson build to use ssifbridge config file
Update meson build to install ssifbridge.service config file to
systemd
Signed-off-by: Dung Cao <dung@os.amperecomputing.com>
Change-Id: I7a51ecdc848d7ebabd133bb4474aee4a3551852a
diff --git a/meson.build b/meson.build
index bf8f01d..f9a1793 100644
--- a/meson.build
+++ b/meson.build
@@ -18,6 +18,20 @@
]
+# Configure and install systemd unit files
+systemd = dependency('systemd')
+systemd_system_unit_dir = systemd.get_pkgconfig_variable(
+ 'systemdsystemunitdir',
+ define_variable: ['prefix', get_option('prefix')])
+
+configure_file(
+ copy: true,
+ input: 'ssifbridge.service',
+ install: true,
+ install_dir: systemd_system_unit_dir,
+ output: 'ssifbridge.service'
+)
+
executable('ssifbridged','ssifbridged.cpp',
dependencies: deps,
install: true)