| 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 |
) |