build: meson support for rsyslog-config

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5292ce1d09596f0d2e84c5d58490a9afe2b954db
diff --git a/config.h.meson b/config.h.meson
index e24765b..1b33374 100644
--- a/config.h.meson
+++ b/config.h.meson
@@ -10,6 +10,7 @@
 
 #define BMC_VERSION_FILE "/etc/os-release"
 #define BUSNAME_LOGGING "xyz.openbmc_project.Logging"
+#define BUSNAME_SYSLOG_CONFIG "xyz.openbmc_project.Syslog.Config"
 #define BUSPATH_REMOTE_LOGGING_CONFIG                                          \
     "/xyz/openbmc_project/logging/config/remote"
 #define CALLOUT_FWD_ASSOCIATION "callout"
@@ -18,6 +19,7 @@
 #define OBJ_ENTRY "/xyz/openbmc_project/logging/entry"
 #define OBJ_INTERNAL "/xyz/openbmc_project/logging/internal/manager"
 #define OBJ_LOGGING "/xyz/openbmc_project/logging"
+#define RSYSLOG_SERVER_CONFIG_FILE "/etc/rsyslog.d/server.conf"
 #define SYSTEMD_BUSNAME "org.freedesktop.systemd1"
 #define SYSTEMD_INTERFACE "org.freedesktop.systemd1.Manager"
 #define SYSTEMD_PATH "/org/freedesktop/systemd1"
diff --git a/meson.build b/meson.build
index 33d0348..6c968dc 100644
--- a/meson.build
+++ b/meson.build
@@ -111,6 +111,7 @@
 )
 
 subdir('phosphor-logging')
+subdir('phosphor-rsyslog-config')
 
 # Build libphosphor-logging.
 libphosphor_logging = library(
diff --git a/phosphor-rsyslog-config/meson.build b/phosphor-rsyslog-config/meson.build
new file mode 100644
index 0000000..087fc2d
--- /dev/null
+++ b/phosphor-rsyslog-config/meson.build
@@ -0,0 +1,15 @@
+executable('phosphor-rsyslog-conf',
+    'main.cpp',
+    'server-conf.cpp',
+    '../sdjournal.cpp',
+    '../elog_meta.cpp',
+    elog_process_gen,
+    include_directories: include_directories('..'),
+    dependencies: [
+        elog_errors_dep,
+        pdi_dep,
+        sdbusplus_dep,
+        sdeventplus_dep,
+    ],
+    install: true,
+)