Add meson build
This commit is to add meson build.
And later, we will remove Autotools and replace it with meson build.
In addition, fixed Layout::LedAction construct parameter error in test
file.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I58c9a2c9de928db288e77ca2d6aa807d36e70144
diff --git a/fault-monitor/fru-fault-monitor.cpp b/fault-monitor/fru-fault-monitor.cpp
index 7b03733..35b30ec 100644
--- a/fault-monitor/fru-fault-monitor.cpp
+++ b/fault-monitor/fru-fault-monitor.cpp
@@ -1,11 +1,11 @@
#include "fru-fault-monitor.hpp"
#include "elog-errors.hpp"
-#include "xyz/openbmc_project/Led/Fru/Monitor/error.hpp"
-#include "xyz/openbmc_project/Led/Mapper/error.hpp"
#include <phosphor-logging/elog.hpp>
#include <sdbusplus/exception.hpp>
+#include <xyz/openbmc_project/Led/Fru/Monitor/error.hpp>
+#include <xyz/openbmc_project/Led/Mapper/error.hpp>
namespace phosphor
{
diff --git a/fault-monitor/meson.build b/fault-monitor/meson.build
new file mode 100644
index 0000000..ef7dfd1
--- /dev/null
+++ b/fault-monitor/meson.build
@@ -0,0 +1,14 @@
+fault_monitor_sources = [
+ generated_sources,
+ 'fru-fault-monitor.cpp',
+ 'monitor-main.cpp',
+]
+
+executable(
+ 'phosphor-fru-fault-monitor',
+ fault_monitor_sources,
+ include_directories: ['.', '../', '../gen'],
+ dependencies: deps,
+ install: true,
+ install_dir: get_option('bindir')
+)