From 3f07f307569afce65e0ed96499e344f8c2656198 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 9 Jun 2022 22:10:55 -0700 Subject: feat: initial commit --- meson.build | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..0e04f75 --- /dev/null +++ b/meson.build @@ -0,0 +1,52 @@ +project( + 'zoo', + 'cpp', + version : '0.1.0', + license : ['GPL-3.0-only'], + default_options : [ + 'buildtype=debugoptimized', + 'cpp_args=-Weverything', + 'cpp_std=c++2a', + 'warning_level=3' + ] +) + +library_path = [] +project_sources = [] +project_header_files = [] +project_test_sources = [] +project_benchmark_sources = [] + +subdir('src') + +zoo = executable( + 'zoo', + main_source, + cpp_args : ['-Wno-c++98-compat', '-Wno-deprecated-copy-dtor'] +) + +test('zoo', zoo) + +run_target( + 'format', + command : [ + 'clang-format', + '-i', + '-style=LLVM', + project_sources, + project_header_files + ] +) + +run_target( + 'tidy', + command : [ + 'run-clang-tidy', + '-j', + '24', + 'files', + '^((?!()).)*$', + '-format', + '-p=' + meson.build_root() + ] +) -- cgit v1.2.3