summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-09 22:10:55 -0700
committerFuwn <[email protected]>2022-06-09 22:10:55 -0700
commit3f07f307569afce65e0ed96499e344f8c2656198 (patch)
tree0a8938ebd967d575678ddd3c83c206074331ca2b /meson.build
downloadzoo-main.tar.xz
zoo-main.zip
feat: initial commitHEADmain
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build52
1 files changed, 52 insertions, 0 deletions
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()
+ ]
+)