meson: Add alternate build system
For now we will support both the autotools and meson build systems
alongside each other, until support for meson is ready across the
ecosystem.
Tested:
Run through build and unit tests that leverage the new build system
and all of the tests pass and the install puts phosphor-watchdog in
the correct location.
Change-Id: I0454e763acc648ac76efd7728f6da498d9acf5dd
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/meson.build b/test/meson.build
new file mode 100644
index 0000000..4218665
--- /dev/null
+++ b/test/meson.build
@@ -0,0 +1,13 @@
+gtest = dependency('gtest', main: true, disabler: true, required: build_tests)
+gmock = dependency('gmock', disabler: true, required: build_tests)
+
+tests = [
+ 'watchdog',
+]
+
+foreach t : tests
+ test(t, executable(t.underscorify(), t + '.cpp',
+ implicit_include_directories: false,
+ link_with: libwatchdog,
+ dependencies: [gtest, gmock]))
+endforeach