Debian Codegraph @

test cases/common/247 deprecated option/meson.build

raw
1 project('deprecated options',
2 default_options: [
3 'o1=false',
4 'o2=a,b',
5 'o3=a,b',
6 'o4=true',
7 'o5=auto',
8 'o6=false',
9 'o8=/foo',
10 ':p1=false',
11 ':p2=a,b',
12 ':p3=a,b',
13 ':p4=true',
14 ':p5=auto',
15 ':p6=false',
16 ':p8=/foo',
17 ]
18 )
19
20 assert(get_option('o1') == false)
21 assert(get_option('p1') == false)
22 assert(get_option('c1') == false)
23 assert(get_option('o2') == ['a', 'b'])
24 assert(get_option('p2') == ['a', 'b'])
25 assert(get_option('c2') == ['a', 'b'])
26 assert(get_option('o3') == ['c', 'b'])
27 assert(get_option('p3') == ['c', 'b'])
28 assert(get_option('c3') == ['c', 'b'])
29 assert(get_option('o4').enabled())
30 assert(get_option('p4').enabled())
31 assert(get_option('c4').enabled())
32 assert(get_option('o5') == false)
33 assert(get_option('p5') == false)
34 assert(get_option('c5') == false)
35 assert(get_option('o6') == false)
36 assert(get_option('p6') == false)
37 assert(get_option('c6') == false)
38 assert(get_option('o7').disabled())
39 assert(get_option('python.platlibdir') == '/foo')