forked from aengelke/rellume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
26 lines (21 loc) · 917 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
project('rellume', ['cpp'],
default_options: [
'buildtype=debugoptimized',
'warning_level=3',
'cpp_std=c++17',
])
add_project_arguments(['-Wno-unused-parameter', '-Wshadow=local'], language: 'cpp')
libllvm = dependency('llvm', version: ['>=8', '<10'])
add_project_arguments(['-DLL_LLVM_MAJOR='+libllvm.version().split('.')[0]], language: 'cpp')
fadec_subproject = subproject('fadec', default_options: ['archmode=only64'])
fadec = fadec_subproject.get_variable('fadec')
rellume_inc = include_directories('include', 'data')
subdir('data/rellume')
subdir('src')
subdir('include/rellume')
librellume = declare_dependency(include_directories: rellume_inc,
link_with: librellume_lib,
dependencies: [libllvm],
sources: [cpustruct_pub])
subdir('tests')
subdir('examples')