forked from ish-app/ish
-
Notifications
You must be signed in to change notification settings - Fork 11
/
meson.build
31 lines (23 loc) · 1014 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
project('ish-tests', 'c')
add_project_arguments(['-m32', '-fno-stack-protector'], language: 'c')
add_project_link_arguments('-m32', language: 'c')
# hello world
executable('hello', ['hello.c'], link_args: ['-static', '-nostdlib'])
executable('hello-libc-static', ['hello-clib.c'], link_args: ['-static'])
executable('hello-libc', ['hello-clib.c'])
# simple benchmark
executable('looper', ['looper.c'])
executable('fibbonaci', ['fibbonaci.c'])
# filesystem
executable('cat', ['cat.c'])
executable('stat', ['stat.c'], c_args: ['-D_FILE_OFFSET_BITS=64'])
executable('getdents', ['getdents.c'])
executable('signal', ['signal.c'], link_args: ['-static'])
executable('forkexec', ['forkexec.c'])
executable('thread', ['thread.c'], dependencies: dependency('threads'))
# various tests for code that modifies itself
executable('modify', ['modify.c'], link_args: ['-zexecstack'])
# qemu test program
executable('qemu-test', ['qemu-test.c'], link_args: ['-lm'])
run_target('busybox',
command: ['get-busybox.sh'])