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/test/meson.build b/test/meson.build
new file mode 100644
index 0000000..5e2d7b0
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,25 @@
+
+test_include_directories = include_directories(
+ '..'
+)
+
+test_deps=[
+ fmt_dep,
+ gmock_dep,
+ gtest_dep,
+ json_dep,
+ phosphor_dbus_interfaces_dep,
+ phosphor_logging_dep,
+ sdbusplus_dep
+]
+
+test(
+ 'logger_test',
+ executable(
+ 'logger_test',
+ 'logger_test.cpp',
+ dependencies:test_deps,
+ implicit_include_directories: false,
+ include_directories: [test_include_directories]
+ )
+)