-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmeson.build
36 lines (31 loc) · 1.16 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
project('enso', 'c', 'cpp', version: '0.4.6', license: 'BSD-3-Clause',
meson_version: '>=0.58.0',
default_options: [
'prefix=/usr/local',
'cpp_std=c++17',
'debug=true',
'optimization=3',
'warning_level=3',
'werror=true',
'default_library=static',
'cpp_eh=none', # No exceptions.
'b_ndebug=true', # Disable asserts.
'b_lto=true', # Link-time optimization.
'cpp_rtti=false', # No RTTI.
])
add_global_arguments('-march=native', language: ['c', 'cpp'])
notification_buf_size = get_option('notification_buf_size')
enso_pipe_size = get_option('enso_pipe_size')
latency_opt = get_option('latency_opt')
dev_backend = get_option('dev_backend')
add_global_arguments(f'-D NOTIFICATION_BUF_SIZE=@notification_buf_size@',
language: ['c', 'cpp'])
add_global_arguments(f'-D ENSO_PIPE_SIZE=@enso_pipe_size@',
language: ['c', 'cpp'])
if latency_opt
add_global_arguments('-D LATENCY_OPT', language: ['c', 'cpp'])
endif
subdir('software')
subdir('docs')
subdir('hardware')
subdir('scripts')