aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: 1d5f2e364c1276e66a07017491292d578e07fedb (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
project('sok', 'c', default_options: ['c_std=c11'])

sources = [
  'src/libsok/sok-level-parser.c',
  'src/libsok/sok-ctx.c',
  'src/libsok/sok-ctx-hash.c',
  'src/libsok/sok-cache.c',
  'src/libsok/sok-solve.c',
]

# text exe
executable('sok-text', sources + [
  'src/text/main.c',
  'src/text/levels.c',
  'src/text/action.c',
  'src/text/draw.c',
], dependencies: [])

# sdl exe
executable('sok-sdl', sources + [
  'src/sdl/main.c',
], dependencies: [
  # 'sdl2',
])

# test executable
test_solve = executable('test-solve', sources + [
  'src/text/levels.c',
  'src/test-solve/main.c',
], dependencies: [])

# generate solve tests
foreach i: [0, 3, 4, 11, 18, 23] # long tests: 14, 17, 22, 26
  test('level @0@'.format(i), test_solve, args: [
    '@0@'.format(i),
  ])
endforeach