~mmach/netext73/meson

« back to all changes in this revision

Viewing changes to manual tests/13 builddir upgrade/meson.build

  • Committer: mmach
  • Date: 2023-03-15 07:28:10 UTC
  • Revision ID: netbit73@gmail.com-20230315072810-rjs3fs158gp6aup7
dla focal

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
project('check old builddirs in a stable release', 'c')
2
 
 
3
 
lib = both_libraries('lib', 'lib.c')
4
 
exe = executable('foo', 'foo.c', link_with: lib, install: true)
5
 
test('exe', exe)
6
 
 
7
 
install_data('data/foo.dat', install_dir: get_option('datadir') / 'foo')
8
 
install_man('foo.1')
9
 
 
10
 
py = import('python').find_installation()
11
 
py.install_sources('mod.py', subdir: 'foo')
12
 
install_subdir('data', install_dir: py.get_install_dir())
13
 
 
14
 
custom_target(
15
 
  input: 'mod.py',
16
 
  output: 'hello.dat',
17
 
  command: [py, '@INPUT@'],
18
 
  capture: true,
19
 
  install: true,
20
 
  install_dir: get_option('localstatedir') / 'foo',
21
 
)