summaryrefslogtreecommitdiff
path: root/meson.build
blob: 8ff2ca9e85ba43c18b57095f86a1fb740f582b8a (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
project('camelsweeper', 'c')

src_camelsweeper = [
  'src/flag.c',
  'src/flip.c',
  'src/init.c',
  'src/main.c',
  'src/move.c',
  'src/xSDL.c',
]

deps_camelsweeper = [
  dependency('libsdl-digit'),
  dependency('sdl'),
]

executable('camelsweeper', src_camelsweeper,
  include_directories: ['include'],
  dependencies: deps_camelsweeper,
  install: true)

install_subdir('img', install_dir: get_option('datadir') / 'camelsweeper')


conf_data = configuration_data()
conf_data.set('datadir', get_option('prefix') / get_option('datadir') / 'camelsweeper')

configure_file(input: 'config.h.in',
  output: 'config.h',
  configuration: conf_data)