summaryrefslogtreecommitdiffstats
path: root/manual tests/13 builddir upgrade/meson.build
blob: 34ae39c618c50899cba0798e4d4a89d8ef2eea5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
project('check old builddirs in a stable release', 'c')

lib = both_libraries('lib', 'lib.c')
exe = executable('foo', 'foo.c', link_with: lib, install: true)
test('exe', exe)

install_data('data/foo.dat', install_dir: get_option('datadir') / 'foo')
install_man('foo.1')

py = import('python').find_installation()
py.install_sources('mod.py', subdir: 'foo')
install_subdir('data', install_dir: py.get_install_dir())

custom_target(
  input: 'mod.py',
  output: 'hello.dat',
  command: [py, '@INPUT@'],
  capture: true,
  install: true,
  install_dir: get_option('localstatedir') / 'foo',
)