summaryrefslogtreecommitdiff
path: root/test cases/format/4 config/indentation.meson
blob: 96a977e5fb56ee7226b50a68e6b21e3519ccb0bf (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
project(
  'indentation',
  default_options : {
    'buildtype' : 'release',
    'default_library' : 'shared',
    'prefer_static' : false,
    'unity' : 'off',
  },
  meson_version : '>= 1.5.0',
  version : '1.2.3',
)

a = [
  1,
  2,
  3,
  [
    4,
    5,
    6,
    [
      7,
      8,
      9,
      [
        10,   # 10
        11,   # 11
        12,   # 12
      ],
      13,
      14,
      15,
    ],
  ],
]
d = {}

if meson.project_version().version_compare('>1.2')
  if meson.version().version_compare('>1.0')
    foreach i : a
      e = {
        'a' : 'a',
        'b' : 'b',
        'c' : 'c',
        'd' : [
          1,
          2,
          3,
          {
            'e' : 'e',
            'f' : 'f',
            'g' : 'g',
            'h' : {
              'i' : (
                # a
                1
                # b
                +
                # c
                2
              ),
              'j' : [
                1,   # 1
                2,   # 2
                3,   # 3
              ],
            },
          },
        ],
      }
    endforeach
  endif
endif

subproject(
  '@0@-@1@-@2@-@3@'.format(
    meson.project_name(),
    meson.project_version(),
    meson.project_build_root(),
    meson.project_source_root(),
  ),
  default_options : [
    'aaaaaaaa=bbbbbbbbbb',
    'cccccccccccc=ddddddddddddd',
    'eeeeeeeeeeeeeee=fffffffffffff',
    'gggggggggggggggggggggg=hhhhhhhhhhhhhhhhhhhh',
  ],
)