-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
50 lines (43 loc) · 1.04 KB
/
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
43
44
45
46
47
48
49
50
project('Python Gateway Interface Bridge',
'cpp',
version : '0.1',
default_options : [
'warning_level=3',
'cpp_std=c++2a'
]
)
cxxflags = [
# man gcc says: "This option does not warn about designated initializers", but it does
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868
'-Wno-missing-field-initializers',
# -Wdelete-non-virtual-dtor is the better warning and included in -Wall
'-Wno-non-virtual-dtor',
]
add_global_arguments(cxxflags, language: 'cpp')
compiler = meson.get_compiler('cpp')
inc = include_directories(
'src/',
'libcommon/src',
)
python_dep = dependency('python3-embed')
subdir('libcommon/src/util')
subdir('libcommon/src/lib/fmt')
subdir('libcommon/src/uri')
subdir('libcommon/src/time')
subdir('libcommon/src/http')
subdir('libcommon/src/io')
subdir('libcommon/src/was')
executable('python-was',
'src/http.cxx',
'src/main.cxx',
'src/python.cxx',
'src/was.cxx',
'src/wsgi.cxx',
dependencies : [
fmt_dep,
python_dep,
was_dep,
],
include_directories: inc,
install : true
)