hack/meson.build

35 lines
638 B
Meson
Raw Normal View History

2022-02-28 12:44:18 +03:00
# https://pixorblog.wordpress.com/2019/07/27/a-meson-starter-script-for-c-projects
project(
'hack',
'cpp',
version : '0.0.1',
2022-03-20 22:01:41 +03:00
default_options : ['cpp_std=c++2a']
2022-02-28 12:44:18 +03:00
)
add_project_arguments (
2022-03-23 22:02:17 +03:00
'-Wpedantic',
'-Wshadow',
2022-02-28 12:44:18 +03:00
'-Wno-comment',
2022-03-23 22:02:17 +03:00
#'-Wno-gnu-zero-variadic-macro-arguments',
2022-02-28 12:44:18 +03:00
'-Wunused-but-set-variable',
language: 'cpp'
)
2022-03-23 22:02:17 +03:00
compiler = meson.get_compiler('cpp')
if compiler.get_id() == 'gcc'
message('Compiler: GCC')
elif compiler.get_id() == 'clang'
message('Compiler: LLVM/clang')
endif
2022-02-28 12:44:18 +03:00
args = []
deps = []
inc = []
inc += include_directories('.')
subdir('src')
2022-03-24 16:30:10 +03:00
subdir('index')
2022-02-28 12:44:18 +03:00
subdir('bin')
subdir('tests')