Skip to content

Commit 64914bd

Browse files
author
Karuro Chari
committed
Added meson build script
1 parent 5aa32ae commit 64914bd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

meson.build

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
project(
2+
'cppfront',
3+
['cpp'],
4+
version: files('./source/version.info'),
5+
meson_version: '>= 1.1',
6+
default_options: ['cpp_std=c++20'],
7+
)
8+
9+
threads_dep = dependency('threads', required : true)
10+
11+
executable('cppfront', './source/cppfront.cpp',
12+
cpp_args : [
13+
'-Wall',
14+
'-Wextra',
15+
'-Wold-style-cast',
16+
'-Wunused-parameter',
17+
'-Wpedantic',
18+
'-Werror',
19+
'-Wno-unknown-warning',
20+
'-Wno-unknown-warning-option'
21+
],
22+
dependencies: [threads_dep],
23+
install:true
24+
)
25+
26+
install_headers([
27+
'./include/cpp2regex.h',
28+
'./include/cpp2regex.h2',
29+
'./include/cpp2util.h'
30+
])

0 commit comments

Comments
 (0)