diff options
| author | William A. Kennington III <wak@google.com> | 2018-12-04 17:22:05 -0800 |
|---|---|---|
| committer | William A. Kennington III <wak@google.com> | 2018-12-13 15:22:36 -0800 |
| commit | d4b33e95f6b9bf9a2e1ad41f371fa602a49989a5 (patch) | |
| tree | 4645ea7dc7167d984c987ebb6f2849b1ffa81d1a /meson.build | |
| parent | 08ebb3993a2b5a82d0a5ead29a649c95632f7c64 (diff) | |
| download | sdeventplus-d4b33e95f6b9bf9a2e1ad41f371fa602a49989a5.tar.gz sdeventplus-d4b33e95f6b9bf9a2e1ad41f371fa602a49989a5.zip | |
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>
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 21 |
1 files changed, 21 insertions, 0 deletions
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 |

