build: Add meson support
Add support for buildling with meson.
Support for --enable-oe-sdk is dropped because running unit tests on the
build system is now supported directly with meson subprojects:
meson buildir && ninja -C buildir test
I tested this by building a witherspoon image and booting it to
multi-user and verifying the mapper-wait functionality works correctly.
Change-Id: I86e5efc7b7c89183219a4c890ad658e334765fc1
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/libmapper/test/meson.build b/libmapper/test/meson.build
new file mode 100644
index 0000000..203f0c3
--- /dev/null
+++ b/libmapper/test/meson.build
@@ -0,0 +1,13 @@
+tests = [
+ [ 'mapper', [ declare_dependency(sources: [ '../mapper.c', 'utils.c' ]) ]],
+]
+
+foreach t : tests
+ name = t[0]
+ extra_deps = t[1]
+ test(name, executable(name.underscorify(), name + '.cpp',
+ implicit_include_directories: false,
+ dependencies: [gtest, gmock, sdbusplus, extra_deps],
+ include_directories: ['../..']),
+ workdir: meson.current_source_dir())
+endforeach