-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
36 lines (27 loc) · 1.06 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('tupl', 'cpp',
default_options : ['cpp_std=c++20','warning_level=3'],
meson_version : '>=0.64.0',
version : '0.5'
)
tests = get_option('tests') # tests are auto disabled for subprojects
arity = get_option('tupl_max_arity') # default is 16 tupl elements max
no_lupl = get_option('no_lupl') # lupl type is generated by default
codegen = get_option('tupl_codegen') # disable for no IREPEAT download
namespace_id = get_option('namespace_id') # default is namespace lml
c_array_support_dep = dependency('c_array_support')
irepeat_dep = dependency('irepeat', required : codegen.allowed())
subdir('tupl_impl')
tupl_dep = declare_dependency(
dependencies : [c_array_support_dep, irepeat_dep, tupl_impl_dep],
include_directories : include_directories('.')
)
# tests are auto disabled when used as a subproject
if tests.disable_auto_if(meson.is_subproject()).allowed()
if get_option('snitch_cmake')
snitch_cmake = import('cmake').subproject('snitch')
snitch_dep = snitch_cmake.dependency('snitch')
else
snitch_dep = dependency('snitch')
endif
subdir('tests')
endif