-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
40 lines (32 loc) · 908 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
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: lua -*-
project('slip', 'cpp',
default_options : ['cpp_std=c++14'])
compiler = meson.get_compiler('cpp')
readline = compiler.find_library('readline', required: true)
lib_path = join_paths(meson.source_root(), 'lib')
cpp_args = ['-DSLIP_PATH="@0@"'.format(lib_path)]
build_type = get_option('buildtype')
if build_type == 'release'
cpp_args += ['-DNDEBUG']
endif
executable('slip',
'main.cpp',
'sexpr.cpp',
'symbol.cpp',
'ast.cpp',
'repr.cpp',
'eval.cpp',
'tool.cpp',
'type.cpp',
'substitution.cpp',
'kind.cpp',
'package.cpp',
'builtins.cpp',
'infer.cpp',
'unify.cpp',
'ir.cpp',
'vm.cpp',
'opt.cpp',
'base.cpp',
dependencies: [readline],
cpp_args : cpp_args)