Debian Codegraph @

test cases/unit/122 persp options/meson.build

raw
1 project('toplevel', 'c')
2
3 round = get_option('round')
4 opt = get_option('optimization')
5 if round == 1
6 assert(opt == '1')
7 elif round == 2
8 assert(opt == '1')
9 elif round == 3
10 assert(opt == '1')
11 elif round == 4
12 assert(opt == '3')
13 elif round == 5
14 assert(opt == '3')
15 elif round == 6
16 assert(opt == '3', opt)
17 else
18 assert(false, 'Invalid round number')
19 endif
20
21 executable('toplevel', 'toplevel.c')
22
23 subproject('sub1')
24 subproject('sub2')