meson: Add alternative build system
For now both autotools and meson will be maintained side by side.
Eventually we should remove the autotools build system.
Change-Id: I04382b17d5267ee218e2658fc163da17853f637a
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..ac9951c
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,21 @@
+project('sdeventplus', 'cpp',
+ version: '0.1', meson_version: '>=0.49.0',
+ default_options: [
+ 'warning_level=3',
+ 'werror=true',
+ 'cpp_std=c++17'
+ ])
+
+includes = include_directories('src')
+
+subdir('src')
+
+build_tests = get_option('tests')
+build_examples = get_option('examples')
+
+if build_examples
+ subdir('example')
+endif
+if not build_tests.disabled()
+ subdir('test')
+endif