-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
55 lines (50 loc) · 1 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
51
52
53
54
55
project(
'wrasm',
'c',
default_options: [
'c_std=c17',
'warning_level=3',
'b_lto=true',
'b_pie=true',
'optimization=3',
],
version: '0.0.1-alpha',
)
argtable3 = subproject(
'argtable3',
required: true,
)
argtable3_dep = argtable3.get_variable('argtable3_dep')
headers = include_directories('h')
sources = files(
'src/args.c',
'src/bytecode.c',
'src/debug.c',
'src/directives.c',
'src/elf/def.c',
'src/elf/output.c',
'src/form/atomic.c',
'src/form/base.c',
'src/form/csr.c',
'src/form/fencei.c',
'src/form/generic.c',
'src/form/instructions.c',
'src/generation.c',
'src/parse.c',
'src/registers.c',
'src/stringutil.c',
'src/symbols.c',
'src/xmalloc.c',
)
executable(
'wrasm',
'src/main.c',
sources,
include_directories: [headers],
dependencies: [argtable3_dep],
c_args: [
'-D_CRT_SECURE_NO_WARNINGS',
],
install: true,
)
subdir('test/unit')