Meson instead of Make
Some checks failed
Deploy documentation / deploy (push) Has been cancelled

This commit is contained in:
2026-01-13 13:18:37 +03:00
parent 2cd45c0750
commit 210a689cee
22 changed files with 240 additions and 450 deletions

34
meson.build Normal file
View File

@ -0,0 +1,34 @@
project(
'basen',
'cpp',
version: '1.1.1',
default_options: {
'cpp_std': 'c++20',
'cpp_args': '-Wall -Wextra -Werror -Wno-unused-result',
},
license: 'LGPL-3.0-only',
license_files: 'LICENSE',
meson_version: '>=1.10.0',
)
configure_file(
input: 'config.hpp.in',
output: 'config.hpp',
configuration: {'ver_str': meson.project_version()},
)
include = include_directories('.', 'include')
subdir('include')
subdir('src')
basen_dep = declare_dependency(
link_with: libbasen,
include_directories: include,
)
if get_option('buildtype') == 'debug'
subdir('test')
endif
subdir('tools')