-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
42 lines (37 loc) · 1000 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
project(
'cppdecl',
'cpp',
default_options: ['warning_level=3', 'cpp_std=c++20'],
)
cxx = meson.get_compiler('cpp')
cxxflags = ''
if cxx.get_argument_syntax() == 'msvc'
cxxflags += '-pedantic-errors -Wconversion -Wno-implicit-int-float-conversion -Wextra-semi -Wdeprecated'
endif
install_headers(
'include/cppdecl/detail/copyable_unique_ptr.h',
'include/cppdecl/detail/enum_flags.h',
'include/cppdecl/detail/overload.h',
'include/cppdecl/detail/string_helpers.h',
install_dir: 'cppdecl/detail'
)
install_headers(
'include/cppdecl/declarations/data.h',
'include/cppdecl/declarations/parse.h',
'include/cppdecl/declarations/to_string.h',
install_dir: 'cppdecl/declarations'
)
idir = include_directories('include')
executable(
'tests',
'source/tests.cpp',
cpp_args: cxxflags,
include_directories: idir
)
executable(
'cppdecl',
'source/repl.cpp',
install: true,
cpp_args: cxxflags,
include_directories: idir,
)