meson support: create meson.build files
This commit contains the meson.build files necessary to build the
project and unit tests. The normal procedure is to run the command
'meson build' followed by ninja -C build. Additionally, service files
are copied to remove autoconf-style naming convention (they cannot be
removed before autoconf files are removed).
Signed-off-by: Mike Capps <mikepcapps@gmail.com>
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I6cf8f5c1c923a198ad2fb4638843645479fd0498
diff --git a/sensor-monitor/meson.build b/sensor-monitor/meson.build
new file mode 100644
index 0000000..64f8b16
--- /dev/null
+++ b/sensor-monitor/meson.build
@@ -0,0 +1,25 @@
+phosphor_fan_sensor_monitor_include_directories = include_directories(
+ '.',
+ '..'
+)
+
+source=[
+ 'main.cpp',
+ 'shutdown_alarm_monitor.cpp',
+ 'threshold_alarm_logger.cpp'
+]
+
+deps=[
+ phosphor_dbus_interfaces_dep,
+ phosphor_logging_dep,
+ sdeventplus_dep
+]
+
+phosphor_fan_sensor_monitor = executable(
+ 'sensor-monitor',
+ source,
+ dependencies: deps,
+ implicit_include_directories: false,
+ include_directories: ['..'],
+ install: true
+)