build: add meson support
Change-Id: Id426d32b63d5cdeb2b5fcbac9fc6d29d5d0e4a97
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..6c44409
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,25 @@
+project(
+ 'slpd-lite',
+ 'cpp',
+ version: '0.1',
+ meson_version: '>=0.57.0',
+ default_options: [
+ 'warning_level=3',
+ 'werror=true',
+ 'cpp_std=c++20',
+ ],
+)
+
+libsystemd_dep = dependency('libsystemd')
+
+executable(
+ 'slpd',
+ 'main.cpp',
+ 'slp_message_handler.cpp',
+ 'slp_parser.cpp',
+ 'slp_server.cpp',
+ 'sock_channel.cpp',
+ dependencies: [ libsystemd_dep ],
+ install: true,
+ install_dir: get_option('sbindir'),
+)